Description
Please provide us with the following information:
OS?
Linux Mint 18 Cinnamon 64-bit
Versions.
angular-cli: 1.0.0-beta.25.5
node: 6.9.4
npm: 4.0.5
os: linux x64
Repro steps.
Updated to angular-cli beta 25.5 from beta 24 following the steps outlined in the update section of the documentation and tried ng new cli-test which failed with the message
Cannot read property 'input' of null
The log given by the failure.
TypeError: Cannot read property 'input' of null
at ObjectSchemaTreeNode._set (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:335:132)
at new ObjectSchemaTreeNode (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:319:14)
at OneOfSchemaTreeNode.NonLeafSchemaTreeNode._createChildProperty (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:232:24)
at /home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:248:26
at Array.map (native)
at new OneOfSchemaTreeNode (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:247:48)
at ArraySchemaTreeNode.NonLeafSchemaTreeNode._createChildProperty (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:232:24)
at ArraySchemaTreeNode._set (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:422:39)
at new ArraySchemaTreeNode (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:402:14)
at ObjectSchemaTreeNode.NonLeafSchemaTreeNode._createChildProperty (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:232:24)
at ObjectSchemaTreeNode._set (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:335:47)
at new ObjectSchemaTreeNode (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:319:14)
at ArraySchemaTreeNode.NonLeafSchemaTreeNode._createChildProperty (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:232:24)
at ArraySchemaTreeNode._set (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:422:39)
at new ArraySchemaTreeNode (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:402:14)
at RootSchemaTreeNode.NonLeafSchemaTreeNode._createChildProperty (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:232:24)
at RootSchemaTreeNode.ObjectSchemaTreeNode._set (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:335:47)
at RootSchemaTreeNode.ObjectSchemaTreeNode [as constructor] (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:319:14)
at new RootSchemaTreeNode (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-tree.js:466:16)
at GeneratedSchemaClass.SchemaClassBase (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-class-factory.js:66:29)
at new GeneratedSchemaClass (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/@ngtools/json-schema/src/schema-class-factory.js:165:20)
at new CliConfig (/home/douglas/.npm-global/lib/node_modules/angular-cli/models/config/config.js:24:24)
at Function.CliConfig.fromConfigPath (/home/douglas/.npm-global/lib/node_modules/angular-cli/models/config/config.js:97:16)
at Function.CliConfig.fromProject (/home/douglas/.npm-global/lib/node_modules/angular-cli/models/config.js:45:44)
at Class.config (/home/douglas/.npm-global/lib/node_modules/angular-cli/addon/index.js:11:77)
at /home/douglas/.npm-global/lib/node_modules/angular-cli/ember-cli/lib/models/project.js:178:27
at Array.reduce (native)
at Project.getAddonsConfig (/home/douglas/.npm-global/lib/node_modules/angular-cli/ember-cli/lib/models/project.js:176:22)
at Project.config (/home/douglas/.npm-global/lib/node_modules/angular-cli/ember-cli/lib/models/project.js:158:17)
at Class.Blueprint.install (/home/douglas/.npm-global/lib/node_modules/angular-cli/ember-cli/lib/models/blueprint.js:498:32)
at Class.run (/home/douglas/.npm-global/lib/node_modules/angular-cli/ember-cli/lib/tasks/install-blueprint.js:52:24)
at Class.initRun (/home/douglas/.npm-global/lib/node_modules/angular-cli/commands/init.run.js:75:29)
at Class.run (/home/douglas/.npm-global/lib/node_modules/angular-cli/commands/init.js:27:46)
at tryCatch (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:538:12)
at invokeCallback (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:553:13)
at publish (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:521:7)
at flush (/home/douglas/.npm-global/lib/node_modules/angular-cli/node_modules/rsvp/dist/rsvp.js:2373:5)
at _combinedTickCallback (internal/process/next_tick.js:67:7)
at process._tickCallback (internal/process/next_tick.js:98:9)
Mention any other details that might be useful.
The directory cli-test is created but is empty.
I have also tried updating a project that was started when using angular-cli beta 21. This project has been successfully updated through all the intervening betas up to beta 24 but now ng init fails with the same Cannot read property 'input' of null message however in this case the error log points to the local node_modules whereas the above log points to the global node_modules. Also, no files in the project directory are altered.
Thanks Douglas