-
Notifications
You must be signed in to change notification settings - Fork 114
fix angular19 #277
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
fix angular19 #277
Conversation
q, are we using that object? if so maybe we limit our validation to the keys/values we care about |
Good point, we don't actually use prerendered routes at all so its better to remove it. |
@@ -63,5 +63,4 @@ export const buildManifestSchema = z.object({ | |||
server: z.optional(url), | |||
browser: url, | |||
}), | |||
prerenderedRoutes: z.optional(z.string().array()), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think we can comment this out for now and add that the type is different between v19 and v18? Might be helpful later when we actually end up using this field.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done!
Not working for me, I'm getting errors as soon as upgrade my project to Angular 19:
I think this line must be changed, adding the object type, or removed or something: https://github.com/FirebaseExtended/firebase-framework-tools/blob/a139fe6a2681db20797df0c8a05cb2ba764f05e3/packages/%40apphosting/adapter-angular/src/interface.ts#L38C3-L38C44 I made a PR #279 |
@quedicesebas Sorry for the troubles. The fix needs to be rolled out to our servers, which should take sometime (ETA: first week of December). In the meantime, we'll try to see if we can create a workaround to get angular19 working on app hosting. |
I already lost 3 days with this, now I had made a rollback of the migration, so how much time more :( Did you saw my PR? |
@quedicesebas and anyone else having this issue. We'll keep y'all posted on when this fix goes live. Until then please give this workaround a try: Step 1: Step 2: Step 3: |
In the step 2, shouel be |
yeah thats right, give it a try and lmk if it fixes your issues |
Worked! |
The The below dependency overrides are required to install the given version of "@apphosting/adapter-angular": {
"@angular-devkit/architect": "$@angular-devkit/architect",
"@angular-devkit/core": "$@angular-devkit/core"
} A |
Another thing worth notice is that after installing If there are any npm EDIT: It seems that NODE_ENV=development is still used, but some builds uses NODE_ENV=production and causes the build to fail when I was debugging. I'm not sure what specifically triggered the change, but it first happens when I install the adapter as a dev dependency. |
For Angular v19, we still need to set the npm task "
??? |
Add additional support for prerendered object routes