You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But when tring with Angular 17, the process is working as expected. The application is same and already have the angular 17 version and angular 18 versions.
Both working well in debug mode.
So, when tried to deploy using GitHub Actions, same issue happens and the log as follows,
Thank you for trying our early preview of Angular support on Firebase Hosting. During the preview, support is best-effort and breaking changes can be expected. Proceed with caution. Documentation: https://firebase.google.com/docs/hosting/frameworks/angular File a bug: https://github.com/firebase/firebase-tools/issues/new?template=bug_report.md Submit a feature request: https://github.com/firebase/firebase-tools/issues/new?template=feature_request.md We'd love to learn from you. Express your interest in helping us shape the future of Firebase Hosting: https://goo.gle/41enW5X Initial chunk files | Names | Raw size | Estimated transfer size main-2ZOFLG4V.js | main | 942.91 kB | 144.96 kB styles-5QNMP7RX.css | styles | 321.17 kB | 30.53 kB polyfills-N6LQB2YD.js | polyfills | 35.53 kB | 11.60 kB | Initial total | 1.30 MB | 187.08 kB Output location: /home/runner/work/project1/project1/dist/project1 Application bundle generation complete. [16.381 seconds] [2024-09-24T08:36:32.301Z] AssertionError [ERR_ASSERTION]: expected "string" but got "object" at new AssertionError (node:internal/assert/assertion_error:452:5) at assertIsString (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/utils.js:402:15) at getBrowserConfig (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/frameworks/angular/utils.js:375:32) at async ɵcodegenPublicDirectory (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/frameworks/angular/index.js:86:62) at async prepareFrameworks (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/frameworks/index.js:241:13) at async deploy (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/deploy/index.js:58:13) at async Command.hostingChannelDeployAction [as actionFn] (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/commands/hosting-channel-deploy.js:90:25) Error: An unexpected error has occurred. The process '/usr/local/bin/npx' failed with exit code 2 Error: The process '/usr/local/bin/npx' failed with exit code 2
The text was updated successfully, but these errors were encountered:
Thank you for joining here, The app was actually one that I'm currently working on is belongs to an organisation that I'm working on.
My environment details as follows,
As you mentioned, I tried a new app that creates using ng new and the issue not reproduced and deployed well.
I would like to provide here another simple app's package.json that also not worked when we tried.
Now I deleted .firebaserc and firebase.json and re-init the firebase using firebase init with new project and now It is working.
This issue may mostly not from firebase side I hope, I hope that may be the dependencies those we used and also may be an angular upgrade problem that we having with our app.
I'll provide if specific issues are found.
Again thank you @9kubczas4 for help here.
[REQUIRED] Environment info
firebase-tools: 13.19.0
Platform: Windows & Ubuntu in GitHub Actions
[REQUIRED] Test case
Deploying an Angular 18 project to Firebase hosting using Firebase Web Frameworks support
[REQUIRED] Steps to reproduce
Deploy Angular 18 App into Firebase Hosting using
[email protected]
[REQUIRED] Expected behavior
Deploy the application in to the Firebase successfully.
[REQUIRED] Actual behavior
The console is shown following as last output and the process is just terminating. There were no error code or error description.
Application bundle generation complete. [13.135 seconds]
Error: An unexpected error has occurred.
But when tring with Angular 17, the process is working as expected. The application is same and already have the angular 17 version and angular 18 versions.
Both working well in debug mode.
So, when tried to deploy using GitHub Actions, same issue happens and the log as follows,
Thank you for trying our early preview of Angular support on Firebase Hosting. During the preview, support is best-effort and breaking changes can be expected. Proceed with caution. Documentation: https://firebase.google.com/docs/hosting/frameworks/angular File a bug: https://github.com/firebase/firebase-tools/issues/new?template=bug_report.md Submit a feature request: https://github.com/firebase/firebase-tools/issues/new?template=feature_request.md We'd love to learn from you. Express your interest in helping us shape the future of Firebase Hosting: https://goo.gle/41enW5X Initial chunk files | Names | Raw size | Estimated transfer size main-2ZOFLG4V.js | main | 942.91 kB | 144.96 kB styles-5QNMP7RX.css | styles | 321.17 kB | 30.53 kB polyfills-N6LQB2YD.js | polyfills | 35.53 kB | 11.60 kB | Initial total | 1.30 MB | 187.08 kB Output location: /home/runner/work/project1/project1/dist/project1 Application bundle generation complete. [16.381 seconds] [2024-09-24T08:36:32.301Z] AssertionError [ERR_ASSERTION]: expected "string" but got "object" at new AssertionError (node:internal/assert/assertion_error:452:5) at assertIsString (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/utils.js:402:15) at getBrowserConfig (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/frameworks/angular/utils.js:375:32) at async ɵcodegenPublicDirectory (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/frameworks/angular/index.js:86:62) at async prepareFrameworks (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/frameworks/index.js:241:13) at async deploy (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/deploy/index.js:58:13) at async Command.hostingChannelDeployAction [as actionFn] (/home/runner/.npm/_npx/ba4f1959e38407b5/node_modules/firebase-tools/lib/commands/hosting-channel-deploy.js:90:25) Error: An unexpected error has occurred. The process '/usr/local/bin/npx' failed with exit code 2 Error: The process '/usr/local/bin/npx' failed with exit code 2
The text was updated successfully, but these errors were encountered: