How to add @angular/fire?
See original GitHub issueI’m stuck in installing ‘ng add XXX’ for example, https://github.com/angular/angularfire
The add command requires to be run in an Angular project, but a project definition could not be found.
NX recoomends to use NX-CLI not Angular CLI for working with other frameworks.
Okay…then What should I do to use ‘ng add’ Material, Firebase and so on… Most of top library packages only support “ng add” schematics way recently… Of course, there are ways to manually install but they started to get rid of manual install documentation because of ‘ng add’ popularity.
so, NX CLI should support ‘nx add’ because there is no angular.cli but workspace.json,
Issue Analytics
- State:
- Created 3 years ago
- Reactions:11
- Comments:9 (2 by maintainers)
Top Results From Across the Web
angular/fire - npm
The official Angular library for Firebase. ... Start using @angular/fire in your project by running `npm i ... ng add @angular/fire.
Read more >How to Setup Firebase for Angular - Coding Latte
After that, we are going to install @angular/fire using Angular Schematics – @angular/fire is the new name of angularfire2 . ... The above...
Read more >How to Setup Firebase Account, AngularFire2 in Angular 13
Visit Firebase website and login using your email id.Add Project section. Click on the below screen. ... Enter the project name, don't forget...
Read more >ng add @angular/fire "The package that you are trying to add ...
You can try using a different version of the package or contact the package author to add ng-add support. Using npm uninstall @angular/fire...
Read more >Firebase + Angular: Setup and Auth - Induro
The login component that checks if the user is logged in with AngularFire and if not gives them the ability to login via...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi folks, I will take the angular material as an example of how to deal with ng add in NX workspace:
Add @angular/material using yarn or npm:
yarn add @angular/material
Now, let’s take the advantage of
now let’s add in our angular project:
nx list @angular/material
. This fabulous command shows us all possibility of usage of @angular/material:nx g @angular/material:ng-add
That’s all folks! Simple as that!
Thank you @samudiogo, it works on my side, additionnaly, here is the associated help (of course, it is possible to specify the project):