Skip to content

fix(platform-browser): resolve component resources before bootstrapping in JIT mode #62758

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

crisbeto
Copy link
Member

Currently if the app has some external resources and it gets bootstrapped in JIT mode, the user will get an error about calling resolveComponentResources. These changes add a call to resolveComponentResources automatically inside bootstrapApplication.

Note that we don't need similar logic for bootstrapModule, because it calls into compileNgModuleFactory internally which in turn calls resolveComponentResources.

@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Jul 23, 2025
@angular-robot angular-robot bot added the area: core Issues related to the framework runtime label Jul 23, 2025
@ngbot ngbot bot added this to the Backlog milestone Jul 23, 2025
…ng in JIT mode

Currently if the app has some external resources and it gets bootstrapped in JIT mode, the user will get an error about calling `resolveComponentResources`. These changes add a call to `resolveComponentResources` automatically inside `bootstrapApplication`.

Note that we don't need similar logic for `bootstrapModule`, because it calls into `compileNgModuleFactory` internally which in turn calls `resolveComponentResources`.
@crisbeto crisbeto force-pushed the jit-resolve-resources branch from a7927b8 to 52e1bfa Compare July 23, 2025 07:58
@crisbeto crisbeto requested a review from devversion July 23, 2025 08:10
@crisbeto crisbeto marked this pull request as ready for review July 23, 2025 08:10
@crisbeto crisbeto added action: global presubmit The PR is in need of a google3 global presubmit action: merge The PR is ready for merge by the caretaker and removed action: global presubmit The PR is in need of a google3 global presubmit labels Jul 23, 2025
@crisbeto
Copy link
Member Author

Passing TGP

@kirjs
Copy link
Contributor

kirjs commented Jul 23, 2025

This PR was merged into the repository by commit 74d99ed.

The changes were merged into the following branches: main, 20.1.x

@kirjs kirjs closed this in 74d99ed Jul 23, 2025
kirjs pushed a commit that referenced this pull request Jul 23, 2025
…ng in JIT mode (#62758)

Currently if the app has some external resources and it gets bootstrapped in JIT mode, the user will get an error about calling `resolveComponentResources`. These changes add a call to `resolveComponentResources` automatically inside `bootstrapApplication`.

Note that we don't need similar logic for `bootstrapModule`, because it calls into `compileNgModuleFactory` internally which in turn calls `resolveComponentResources`.

PR Close #62758
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
action: merge The PR is ready for merge by the caretaker area: core Issues related to the framework runtime hotlist: google target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants