Skip to content
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

build: update to latest next version and remove patch #30809

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Apr 5, 2025

Updates the repo to the Angular 20.0.0-next.5 version which we need so we can move the DOCUMENT imports from common to core, and it allows us to remove a build patch because it includes angular/angular#60555

@crisbeto crisbeto added the target: major This PR is targeted for the next major release label Apr 5, 2025
@crisbeto crisbeto requested a review from devversion April 5, 2025 07:45
@crisbeto crisbeto requested a review from a team as a code owner April 5, 2025 07:45
@crisbeto crisbeto requested review from mmalerba and wagnermaciel and removed request for a team April 5, 2025 07:45
@angular-robot angular-robot bot added the area: build & ci Related the build and CI infrastructure of the project label Apr 5, 2025
Copy link
Member

@devversion devversion left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice, thanks for the cleanup

@@ -185,9 +185,6 @@
},
"pnpm": {
"onlyBuiltDependencies": [],
"patchedDependencies": {
Copy link
Member Author

@crisbeto crisbeto Apr 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devversion not sure if it's because I removed this, but it actually ends up breaking at runtime with the following error:

Error: The injectable '_PlatformLocation' needs to be compiled using the JIT compiler, but '@angular/compiler' is not available.

The injectable is part of a library that has been partially compiled.
However, the Angular Linker has not processed the library such that JIT compilation is used as fallback.

Ideally, the library is processed using the Angular Linker to become fully AOT compiled.
Alternatively, the JIT compiler should be loaded by bootstrapping using '@angular/platform-browser-dynamic' or '@angular/platform-server',
or manually provide the compiler with 'import "@angular/compiler";' before bootstrapping.

It looks like something isn't being compiled. I got this error from bazel test //src/universal-app:prerender_test, but the dev app breaks with something similar at runtime.

Updates the repo to the Angular 20.0.0-next.5 version which we need so we can move the `DOCUMENT` imports from `common` to `core`, and it allows us to remove a build patch because it includes angular/angular#60555
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build & ci Related the build and CI infrastructure of the project target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants