-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Description
Please provide us with the following information:
OS?
Windows 7, 8 or 10. Linux (which distribution). Mac OSX (Yosemite? El Capitan?)
Mac OSX sierra and Jenkins CentOS 5
Versions.
Please run
ng --version
. If there's nothing outputted, please run in a Terminal:node --version
and paste the result here:
beta.31
Repro steps.
Was this an app that wasn't created using the CLI? What change did you do on your code? etc.
The log given by the failure.
Normally this include a stack trace and some more information.
constructor(schema, value, ...fallbacks) {
^^^
SyntaxError: Unexpected token ...
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/usr/local/lib/node_modules/@angular/cli/node_modules/@ngtools/json-schema/src/index.js:2:30)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
Also this:
SyntaxError: Unexpected token =
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object.<anonymous> (/data4/hudson/workspace/ui.resources/node_modules/@angular/cli/models/config.js:2:18)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
Mention any other details that might be useful.
Yesterday @ngtools/json-schema@1.0.2
was updated to 1.0.3
and also @ngtools/webpack@1.2.8
was updated to 1.2.9
Seems like those two updates introduces ES2016 syntax that Node 5.5.0 does not like.
I know angular cli team did their due diligence and mentioned that node < 6.9 will no longer be supported... BUT, it would have been nice if you could at least pin the versions
Those two releases mentioned above, should have been minor releases.
Additionally, @angular/cli@1.0.0-beta30 should have had the following dependencies:
"@ngtools/json-schema":"1.0.x"
instead of "^1.0.0"
and "@ngtools/webpack":"1.2.x"
instead of "^1.2.3"
I appreciate all the hard work from angular team. I am not aware of your development process but s an outsider, that's what I think.
I found a solution to this, please find it it in the comments
Thanks! We'll be in touch soon.