-
Notifications
You must be signed in to change notification settings - Fork 12k
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
Setting the default style on an existing project (bug) #2639
Comments
This has been fixed by f7bf0aa it should be pushed to npm in the next version meanwhile you can pull it directly from github using npm install -g https://github.com/angular/angular-cli |
Same problem and error, but the solution did not work for me |
Make sure to uninstall the cli and clear npm cache before installing the updated version. |
Or: Temporaly solution (If you don't want reinstall.) You can edit the file: |
Can we not just edit
to:
Or is it more complex than that? |
I also noticed a possible newbie gotcha, in that you also need to change |
@harryjubb yes. Changing the property in Another approach is running This is how I upgrade my CLI project. I make sure all my files are committed in git, upgrade my global CLI, change CLI version in project's You will still have to delete the old .css files, and update all components (other than AppComponent) to point to .scss files. |
Thanks @Meligy for your explanation - I think it should be quoted in angular-cli docs/wiki one day! |
Dupe of #2614 |
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. |
I just created a new project and forgot to add
--style scss
tong new newProject
.I tried to set the default style on that project using
ng set defaults.styleExt scss
and I got this errorCannot read property 'serialize' of undefined
The text was updated successfully, but these errors were encountered: