Skip to content

Output bundle import map integrity key warning in browser #33617

Closed

Description

@fegyi001

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

When building an app now, I see warnings in the browser. This is the importmap for the lazily loaded chunks. The warning indicates that the keys for the hashes are not valid. It seems that they should be a valid url, e.g. starting with ./, / etc, but they aren't.

The warning message is something like this:
Ignored an import map value of "chunk-2CJiPTcF.js": Integrity key is not a valid absolute URL or relative URL starting with '/', './', or '../'

Image

If I examine the generated index.html, I see on top of the head section the importmap, where this json content is set. It looks like this:

Image

My guess is, that they should simply have a prepending ./ before the keys, e.g. ./chunk-2CJiPTcF.js instead of simply chunk-2CJiPTcF.js. If I add it manually after the build, the warning disappears.

Is it a bug?

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Ignored an import map value of "chunk-SYbG1sRo.js": Integrity key is not a valid absolute URL or relative URL starting with '/', './', or '../'

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 22.0.7
Angular: 22.0.7
Node: 24.16.0
Package Manager: yarn 4.17.1
OS: macOS Tahoe 26.5.2

Anything else?

No response

Activity

  1. added
    area: build & ciRelated the build and CI infrastructure of the project
    gemini-triagedLabel noting that an issue has been triaged by gemini
    on Jul 21, 2026
  2. added this to the needsTriage milestone on Jul 21, 2026
  3. added this to the needsTriage milestone on Jul 21, 2026
  4. added 3 commits that reference this issue on Jul 21, 2026
    273c944
    46e142c
    7b1b8df
  5. added theissue type on Jul 21, 2026
  6. added 2 commits that reference this issue on Jul 21, 2026
    2b48db4
    21b8fc0
  7. added a commit that references this issue on Jul 21, 2026
    b8bdbaa
  8. angular-automatic-lock-bot commented on Aug 21, 2026

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  9. locked and limited conversation to collaborators on Aug 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: build & ciRelated the build and CI infrastructure of the projectgemini-triagedLabel noting that an issue has been triaged by gemini

    Type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions