-
Notifications
You must be signed in to change notification settings - Fork 12k
Error on ng add @angular/pwa #10469
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 have the same-same error with:
|
The following worked for me |
thanks! this fixed my problem :-) since I'm adding something to an existing project, could --project be optional and take current project as the default? |
#10486 and angular/devkit#764 should enable this, but both I tried to do the PR but I'm not sure there is just to mark |
PR in angular/devkit#813 |
I'm trying to run the command |
@collindutter your angular-cli.json file should be updated to angular.json |
find your correct project name in angular.json file under projects. |
@collindutter hey - by any chance any update on this ? |
@maeri yes, actually! In this file on line 137, it iterates over a list of strings, and does some work on them.
In my angular.json, I had a 'build' section, but I had removed the 'test' section because I didn't need it for my current project. So when it evaluated Not sure if this is the case for everyone, but it directly fixed it for me. Hope this helps! |
@collindutter wow it works !! thank you very much :) |
It is still an issue
Package Version@angular-devkit/architect 0.7.1
Data path "" should NOT have additional properties(title). And adding --service-worker to generate a new project also fails.
Data path "" should NOT have additional properties(serviceWorker). |
Same here. I get the same error as ssi-hu-tasi-norbert with or without defining the project name. |
Did you have a solution for "Cannot read property 'options' of undefined"? |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Versions
Repro steps
ng new my-app
cd my-app
ng add @angular/pwa
Observed behavior
Desired behavior
Add PWA super powers to my app
The text was updated successfully, but these errors were encountered: