Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Output bundle import map integrity key warning in browser #33617

Copy link
Copy link

Description

@fegyi001
Issue body actions

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

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.