Repository navigation
update to 26 fails on Linux Mint V18 #4068
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
Activity
filipesilva commentedon Jan 17, 2017
This seems related to the
angular-cli.jsonfile. Can you try copying over a brand newangular-cli.jsonfrom a new project (use--skip-npmto not wait for npm installs).If that fixes it, can you show me your previous
angular-cli.jsonso we can see if we can figure out what caused it to break?DouglasWebster commentedon Jan 18, 2017
I cannot create a new project. Trying to create a new project fails with the message and log output as detailed above. All that the ng new command seems to do before the failure is create an empty directory with the name of the project. As the directory is empty there is no angular-cli.json file to supply.
DouglasWebster commentedon Jan 20, 2017
I have now tried the update to beta-26 and things are slightly different. Where as angular-cli beta-25.5
would not create a new project, only an empty directory the angular-cli beta 26 will now create a new project. However, trying to run anything other than ng lint gives an error. All errors are Cannot read property 'input' of null and the log output given for ng build is
TypeError: Cannot read property 'input' of null
at ObjectSchemaTreeNode._set (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:347:132)
at new ObjectSchemaTreeNode (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:331:14)
at OneOfSchemaTreeNode.NonLeafSchemaTreeNode._createChildProperty (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:244:24)
at /mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:260:26
at Array.map (native)
at new OneOfSchemaTreeNode (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:259:48)
at ArraySchemaTreeNode.NonLeafSchemaTreeNode._createChildProperty (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:244:24)
at ArraySchemaTreeNode._set (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:434:39)
at new ArraySchemaTreeNode (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:414:14)
at ObjectSchemaTreeNode.NonLeafSchemaTreeNode._createChildProperty (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:244:24)
at ObjectSchemaTreeNode._set (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:347:47)
at new ObjectSchemaTreeNode (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:331:14)
at ArraySchemaTreeNode.NonLeafSchemaTreeNode._createChildProperty (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:244:24)
at ArraySchemaTreeNode._set (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:434:39)
at new ArraySchemaTreeNode (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:414:14)
at RootSchemaTreeNode.NonLeafSchemaTreeNode._createChildProperty (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:244:24)
at RootSchemaTreeNode.ObjectSchemaTreeNode._set (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:347:47)
at RootSchemaTreeNode.ObjectSchemaTreeNode [as constructor] (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:331:14)
at new RootSchemaTreeNode (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-tree.js:478:16)
at GeneratedSchemaClass.SchemaClassBase (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-class-factory.js:66:29)
at new GeneratedSchemaClass (/mnt/Data/DevPackages/cli-test/node_modules/@ngtools/json-schema/src/schema-class-factory.js:165:20)
at new CliConfig (/mnt/Data/DevPackages/cli-test/node_modules/angular-cli/models/config/config.js:24:24)
at Function.CliConfig.fromConfigPath (/mnt/Data/DevPackages/cli-test/node_modules/angular-cli/models/config/config.js:99:16)
at Function.CliConfig.fromProject (/mnt/Data/DevPackages/cli-test/node_modules/angular-cli/models/config.js:63:44)
at Class.run (/mnt/Data/DevPackages/cli-test/node_modules/angular-cli/tasks/build-webpack.js:14:73)
at Class.buildRun (/mnt/Data/DevPackages/cli-test/node_modules/angular-cli/commands/build.run.js:39:22)
at Class.run (/mnt/Data/DevPackages/cli-test/node_modules/angular-cli/commands/build.js:38:47)
at Class. (/mnt/Data/DevPackages/cli-test/node_modules/angular-cli/ember-cli/lib/models/command.js:147:17)
at process._tickCallback (internal/process/next_tick.js:103:7)
the error messages all seem the same until line 26 where they vary depending on the command issued.
[-]update to 25.5 fails on Linux Mint V18[/-][+]update to 26 fails on Linux Mint V18[/+]dustintheweb commentedon Jan 21, 2017
@filipesilva also confirming same issue for beta 25 & 26 on Heroku Ubuntu - (previously working for beta 24)
TypeError: Cannot read property 'input' of null
here is my log:
and here's my fresh angular-cli.json (w/ retrofitted edits)
DouglasWebster commentedon Jan 21, 2017
I have done a complete new install of Linux Mint 18.1 cinnamon, node 6.9.4 and npm 4.1.1 and so far everything looks O.K. Will continue to reinstall software and let you know if there are any problems.
filipesilva commentedon Jan 21, 2017
@DouglasWebster I'm sorry you had such a bad experience, I think it was mostly a dependency thing where there were broken dependencies in global npm. I'm not sure how it got to that state though.. :/
Let me know if you have more problems and I will reopen.
shoaibuddin commentedon Feb 23, 2017
Production build fails with message "Cannot read property 'input' of null"
dustintheweb commentedon Mar 14, 2017
looks like this has been verified as a bug - #4207
angular-automatic-lock-bot commentedon Sep 6, 2019
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.