-
Notifications
You must be signed in to change notification settings - Fork 2.2k
add standalone support for ng add @angular/fire #3365
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
Comments
I am having the same problem were you able to find a fix? |
I'd suggest to create a new project without a standalone, add firebase to it, then copy the generated files to your standalone project |
or just create app.module.ts file add class with ngmodule decorator and then run the command. it won't throw an error and you can simply copy what was generated inside module to main.ts without creating whole new app.
|
This is how I do it, I make a file with firebase configuration, which exports the "provide" functions, and this is then used in the app configuration:
Then in app.config.ts:
|
We should try to add it somewhere in the docs page, since angular made the standalone component as a default way when creating a new component. This will make things easy for new devs who are relatively new to angular. |
I get this error I use Angular v17 and @angular/fire: ^17.0.0-next.0 |
fixed by #3451 |
I tried it now, it works fine for me
|
Version info
Angular: 16.0.3
Firebase: N/A
AngularFire: 7.6.1
Other (e.g. Ionic/Cordova, Node, browser, operating system): node 18.16, windows
How to reproduce these conditions
Steps to set up and reproduce
ng new fire-esbuild-reprod --standalone cd fire-esbuild-reprod ng add @angular/fire
Debug output
Expected behavior
the ng add to complete
Actual behavior
it throw an error
The text was updated successfully, but these errors were encountered: