Skip to content

Fix "Invalid index.html file transformation using global scripts in angular.json file" in v19 #1088

@pmaieref

Description

@pmaieref

With what library do you have an issue?

native-federation

Reproduction of the bug/regression with instructions

Hi,
please cherry-pick the fix from #890 (#909) into version v19 and release a new version containing that fix.

We are for now required to use v19 of native-federation, but we need to use at least 19.0.23 due to other fixes since 19.0.9 (the last known version where the index.html worked correctly) to get NF running.

Fixed it manually by adapting the "updateIndexHtml.ts" and it worked without any further issues so far.

As there is no tracking branch for v19, I am not sure how I can create a cherry-pick PR for it, otherwise I'd gladly help out here.

Thanks!

Expected behavior

This issue to be also resolved in v19: #890

Versions of Native/Module Federation, Angular, Node, Browser, and operating system

NF: 19.0.23
Angular: Latest 19.2

Other information

No response

I would be willing to submit a PR to fix this issue

  • Yes
  • No

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions