Skip to content

Failed to change styleExt via cli #1905

@andrelmp

Description

@andrelmp

Please provide us with the following information:

  1. OS? Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
    Windows 10 (x64)
  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: local (v1.0.0-beta.11-webpack.8, branch: master)
node: 6.4.0
os: win32 x64
  1. Repro steps. Was this an app that wasn't created using the CLI? What change did you
    do on your code? etc.
    Crete a new project using: ng new Teste --style=sass
    then run ng set defaults.styleExt scss
  2. The log given by the failure. Normally this include a stack trace and some
    more information.
Cannot read property 'serialize' of undefined
TypeError: Cannot read property 'serialize' of undefined
    at D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:235:87
    at JsonSerializer.property (D:\github\angular-cli\addon\ng2\models\json-schema\serializer.ts:100:9)
    at _loop_1 (D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:235:32)
    at D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:240:17
    at JsonSerializer.object (D:\github\angular-cli\addon\ng2\models\json-schema\serializer.ts:88:9)
    at ObjectSchemaTreeNode.serialize (D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:227:20)
    at D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:231:92
    at JsonSerializer.property (D:\github\angular-cli\addon\ng2\models\json-schema\serializer.ts:100:9)
    at _loop_1 (D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:231:36)
    at D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:240:17
    at JsonSerializer.object (D:\github\angular-cli\addon\ng2\models\json-schema\serializer.ts:88:9)
    at ObjectSchemaTreeNode.serialize (D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:227:20)
    at D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:293:33
    at JsonSerializer.array (D:\github\angular-cli\addon\ng2\models\json-schema\serializer.ts:107:9)
    at ArraySchemaTreeNode.serialize (D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:291:20)
    at D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:231:92
    at JsonSerializer.property (D:\github\angular-cli\addon\ng2\models\json-schema\serializer.ts:100:9)
    at _loop_1 (D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:231:36)
    at D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:240:17
    at JsonSerializer.object (D:\github\angular-cli\addon\ng2\models\json-schema\serializer.ts:88:9)
    at RootSchemaTreeNode.ObjectSchemaTreeNode.serialize (D:\github\angular-cli\addon\ng2\models\json-schema\schema-tree.ts:227:20)
    at GeneratedSchemaClass.SchemaClassBase.$$serialize (D:\github\angular-cli\addon\ng2\models\json-schema\schema-class-factory.ts:141:25)
  1. Mention any other details that might be useful.

Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

Labels

needs: investigationRequires some digging to determine if action is needed

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions