angular cli error with empty repository
Please provide us with the following information:
###windows 7 ?
Versions.
Please run
ng --version. If there's nothing outputted, please run in a Terminal:node --versionand paste the result here:
ng new front
The log given by the failure.
Cannot read property 'input' of null
TypeError: Cannot read property 'input' of null
at ObjectSchemaTreeNode._set (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:226:131)
at new ObjectSchemaTreeNode (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:211:14)
at OneOfSchemaTreeNode._createChildProperty (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:150:2
at OneOfSchemaTreeNode._typesPrototype.schema.oneOf.map (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-t
at Array.map (native)
at OneOfSchemaTreeNode (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:162:48)
at ArraySchemaTreeNode._createChildProperty (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:150:2
at ArraySchemaTreeNode._set (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:288:39)
at new ArraySchemaTreeNode (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:269:14)
at ObjectSchemaTreeNode._createChildProperty (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:150:
at ObjectSchemaTreeNode._set (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:226:45)
at new ObjectSchemaTreeNode (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:211:14)
at ArraySchemaTreeNode._createChildProperty (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:150:2
at ArraySchemaTreeNode._set (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:288:39)
at new ArraySchemaTreeNode (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:269:14)
at RootSchemaTreeNode._createChildProperty (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:150:26
at RootSchemaTreeNode._set (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:226:45)
at RootSchemaTreeNode.ObjectSchemaTreeNode (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:211:14
at RootSchemaTreeNode (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-tree.js:309:9)
at GeneratedSchemaClass.SchemaClassBase (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-class-factory.js:
at GeneratedSchemaClass (C:\workspacecode\dashbord\client\front\node_modules@ngtools\json-schema\src\schema-class-factory.js:140:13)
at new CliConfig (C:\workspacecode\dashbord\client\front\node_modules@angular\cli\models\config\config.js:17:24)
at Function.fromConfigPath (C:\workspacecode\dashbord\client\front\node_modules@angular\cli\models\config\config.js:80:16)
at Function.fromProject (C:\workspacecode\dashbord\client\front\node_modules@angular\cli\models\config.js:57:46)
at Object.
the project it s empty i dont make any modification ????
which version stable ???? thank you
Hi @Malouke would you be able to post the steps you did so I can try to reproduce this error.
The following helps for me:
- Open schema.json, located under @angular/cli/lib/config/schema.json
- Remove
, { "type": "object", "properties": { "input": { "type": "string" } }, "additionalProperties": true }under styles (aka lines 83 - 91)
Maybe the parser is broken or changed?
What is really interesting: If I create a new installation from scratch (in a docker container) it just works. I have no idea.
@Malouke Does this work for you too? @RicardoVaranda Does that help?
Closing as inactive.
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.