-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Error adding @angular/fire to new workspace #7667
Comments
Hey @gonzalobustos. I took a look at this and it appears to be caused by @angular/fire appending sourceRoot to the project's root when calculating the paths. I'd recommend temporarily changing the sourceRoot in your project configuration to be relative to its root, running the generator, and then changing it back. This is something that will have to be fixed on their end, as it should be handled. I've opened an issue there to track it, and we can close this one out after we hear back from them. angular/angularfire#3052 |
That makes total sense, @AgentEnder |
No worries 😀. Since the problem is acknowledged on their side and I put a pr in over there I'm going to go ahead and close this out. |
@gonzalobustos I think this should be fixed in latest AngularFire as a heads up |
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
I am getting a "Specified module path /apps/admin/apps/admin/src/app/app.module.ts does not exist" error message when trying to add @angular/fire to my angular Nx workspace and choosing features such as Authentication, Firestore or Cloud Functions.
I ran the command that the Nx CLI recommends, basically the same some folks suggest on this related question.
Expected Behavior
@angular/fire should be added without issues, just like @angular/material.
Steps to Reproduce
Create a new Angular workspace
npx create-nx-workspace nx-poc --preset=angular
Add @angular/fire as recommended by the CLI, select Authentication or Firebase when asked about the features to setup and observe the error message
npm install @angular/fire && npx nx g @angular/fire:ng-add
Failure Logs
Environment
The text was updated successfully, but these errors were encountered: