Skip to content
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

Command ng set defaults.styleExt scss fail #2143

Closed
newaeonweb opened this issue Sep 15, 2016 · 12 comments
Closed

Command ng set defaults.styleExt scss fail #2143

newaeonweb opened this issue Sep 15, 2016 · 12 comments

Comments

@newaeonweb
Copy link

Command fail with error: Cannot read property 'serialize' of undefined

  1. Mac OSX ( El Capitan)
  2. Versions. Please run ng --version. If there's nothing outputted, please run
    in a Terminal: node --version and paste the result here:

angular-cli: 1.0.0-beta.14
node: 4.2.2
os: darwin x64

  1. Start a project with no stylesheet options.
    Running: ng set defaults.styleExt scss
  2. The log given by the failure. Normally this include a stack trace and some
    more information.
    Log is too long
@kmckinley
Copy link

I'm running into the same problem. Also on Mac OSX (El Capitan)

angular-cli: 1.0.0-beta.14
node: 5.11.1
os: darwin x64

@hardikkaji
Copy link

I am facing same issue.

angular-cli: 1.0.0-beta.14
node: 5.2.0
os: win32 x64

@cguagenti
Copy link

Same issue

angular-cli: 1.0.0-beta.14
node: 6.4.0
os: darwin x64

@peterblazejewicz
Copy link
Contributor

@filipesilva
Copy link
Contributor

Dupe of #1900

@anders-fly
Copy link

Same issue

angular-cli: 1.0.0-beta.15
node: 6.6.0
os: win32 x64

Log: https://gist.github.com/AndersFly666/699ce2e27faed5c96e5a5899ed77d2f9

@zalog
Copy link
Contributor

zalog commented Oct 2, 2016

Same here.

angular-cli: 1.0.0-beta.16
node: 4.5.0
os: win32 x64

@sotir-ls
Copy link

sotir-ls commented Oct 7, 2016

Is there any solution to this?

I kept changing it manually, but it is annoying to say the least.

@07Gond
Copy link

07Gond commented Oct 11, 2016

This has been fixed in f7bf0aa.

You can upgrade angular-cli from github directly using:
npm install -g https://github.com/angular/angular-cli

Or:

You can edit the file:
"%PROJECT%\node_modules\angular-cli\models\json-schema\schema-tree"
and replace the line 235 with:
serializer.property(key, function () { return serializer.outputValue(value[key])});

@cguagenti
Copy link

Thank you @07Gond

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests