angular-cli: start project failed

OS

Windows 10

Versions.

angular-cli: 1.0.0-beta.28.3 node: 6.9.4 os: win32 x64

Repro steps.

ng serve

The log given by the failure.

ERROR in ./~/@angular/core/src/util/decorators.js Module parse failed: C:\Projets\Angular\formation\node_modules@angular\core\src\util\decorators.js Parenthesized pattern (156:12) You may need an appropriate loader to handle this file type. | if (clsDef.hasOwnProperty(‘extends’)) { | if (typeof clsDef.extends === ‘function’) { | ((constructor)).prototype = proto = | Object.create(((clsDef.extends)).prototype); | } @ ./~/@angular/core/src/util.js 9:0-42 @ ./~/@angular/core/src/core.js @ ./~/@angular/core/index.js @ ./src/main.ts @ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts

ERROR in ./~/@angular/core/src/di/forward_ref.js Module parse failed: C:\Projets\Angular\formation\node_modules@angular\core\src\di\forward_ref.js Parenthesized pattern (24:4) You may need an appropriate loader to handle this file type. | */ | export function forwardRef(forwardRefFn) { | ((forwardRefFn)).forward_ref = forwardRef; | ((forwardRefFn)).toString = function () { return stringify(this()); }; | return (((forwardRefFn))); @ ./~/@angular/core/src/di.js 14:0-65 @ ./~/@angular/core/src/core.js @ ./~/@angular/core/index.js @ ./src/main.ts @ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts

ERROR in ./~/@angular/core/src/facade/errors.js Module parse failed: C:\Projets\Angular\formation\node_modules@angular\core\src\facade\errors.js Parenthesized pattern (60:32) You may need an appropriate loader to handle this file type. | * @return {?} | */ | set: function (value) { ((this._nativeError)).stack = value; }, | enumerable: true, | configurable: true @ ./~/@angular/core/src/application_ref.js 15:0-53 @ ./~/@angular/core/src/core.js @ ./~/@angular/core/index.js @ ./src/main.ts @ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts

ERROR in ./~/@angular/compiler/src/aot/static_reflector.js Module parse failed: C:\Projets\Angular\formation\node_modules@angular\compiler\src\aot\static_reflector.js Parenthesized pattern (793:4) You may need an appropriate loader to handle this file type. | function positionalError(message, fileName, line, column) { | var /** @type {?} */ result = new Error(message); | ((result)).fileName = fileName; | ((result)).line = line; | ((result)).column = column; @ ./~/@angular/compiler/index.js 30:0-61 @ ./~/@angular/platform-browser-dynamic/src/platform-browser-dynamic.js @ ./~/@angular/platform-browser-dynamic/index.js @ ./src/main.ts @ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts

ERROR in ./~/@angular/compiler/src/jit/compiler.js Module parse failed: C:\Projets\Angular\formation\node_modules@angular\compiler\src\jit\compiler.js Parenthesized pattern (283:12) You may need an appropriate loader to handle this file type. | assertComponent(compMeta); | var /** @type {?} / HostClass = function HostClass() { }; | ((HostClass)).overriddenName = identifierName(compMeta.type) + “_Host”; | var /* @type {?} */ hostMeta = createHostComponentMeta(HostClass, compMeta); | compiledTemplate = new CompiledTemplate(true, compMeta.selector, compMeta.type, hostMeta, ngModule, [compMeta.type]); @ ./~/@angular/compiler/index.js 36:0-49 @ ./~/@angular/platform-browser-dynamic/src/platform-browser-dynamic.js @ ./~/@angular/platform-browser-dynamic/index.js @ ./src/main.ts @ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts

ERROR in ./~/@angular/platform-browser/src/browser/browser_adapter.js Module parse failed: C:\Projets\Angular\formation\node_modules@angular\platform-browser\src\browser\browser_adapter.js Parenthesized pattern (88:75) You may need an appropriate loader to handle this file type. | * @return {?} | / | BrowserDomAdapter.prototype.setProperty = function (el, name, value) { ((el))[name] = value; }; | /* | * @param {?} el @ ./~/@angular/platform-browser/src/browser.js 12:0-62 @ ./~/@angular/platform-browser/src/platform-browser.js @ ./~/@angular/platform-browser/index.js @ ./src/app/app.module.ts @ ./src/main.ts @ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts

ERROR in ./~/@angular/platform-browser/src/dom/dom_renderer.js Module parse failed: C:\Projets\Angular\formation\node_modules@angular\platform-browser\src\dom\dom_renderer.js Parenthesized pattern (321:8) You may need an appropriate loader to handle this file type. | / | DomRenderer.prototype.setElementProperty = function (renderElement, propertyName, propertyValue) { | ((renderElement))[propertyName] = propertyValue; | }; | /* @ ./~/@angular/platform-browser/src/browser.js 18:0-71 @ ./~/@angular/platform-browser/src/platform-browser.js @ ./~/@angular/platform-browser/index.js @ ./src/app/app.module.ts @ ./src/main.ts @ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts

ERROR in ./~/@angular/compiler/src/facade/errors.js Module parse failed: C:\Projets\Angular\formation\node_modules@angular\compiler\src\facade\errors.js Parenthesized pattern (60:32) You may need an appropriate loader to handle this file type. | * @return {?} | */ | set: function (value) { ((this._nativeError)).stack = value; }, | enumerable: true, | configurable: true @ ./~/@angular/compiler/src/util.js 13:0-44 @ ./~/@angular/compiler/index.js @ ./~/@angular/platform-browser-dynamic/src/platform-browser-dynamic.js @ ./~/@angular/platform-browser-dynamic/index.js @ ./src/main.ts @ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts

ERROR in ./~/json3/lib/json3.js Module parse failed: C:\Projets\Angular\formation\node_modules\json3\lib\json3.js Parenthesized pattern (89:12)

You may need an appropriate loader to handle this file type. | if (stringifySupported) { | // A test function object with a custom toJSON method. | (value = function () { | return 1; | }).toJSON = value; @ ./~/sockjs-client/lib/main.js 7:12-28 @ ./~/sockjs-client/lib/entry.js @ (webpack)-dev-server/client/socket.js @ (webpack)-dev-server/client?http://localhost:4200/ @ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts

ERROR in ./~/@angular/common/src/facade/errors.js Module parse failed: C:\Projets\Angular\formation\node_modules@angular\common\src\facade\errors.js Parenthesized pattern (60:32) You may need an appropriate loader to handle this file type. | * @return {?} | */ | set: function (value) { ((this._nativeError)).stack = value; }, | enumerable: true, | configurable: true @ ./~/@angular/common/src/pipes/invalid_pipe_argument_error.js 13:0-45 @ ./~/@angular/common/src/pipes/async_pipe.js @ ./~/@angular/common/src/pipes/index.js @ ./~/@angular/common/src/common.js @ ./~/@angular/common/index.js @ ./~/@angular/platform-browser/src/browser.js @ ./~/@angular/platform-browser/src/platform-browser.js @ ./~/@angular/platform-browser/index.js @ ./src/app/app.module.ts @ ./src/main.ts @ multi webpack-dev-server/client?http://localhost:4200/ ./src/main.ts

any idea ?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Reactions: 6
  • Comments: 30 (3 by maintainers)

Most upvoted comments

The problem was indeed in acorn, one of WebPack’s dependencies and should be fixed by doing:

$ rm -rf node_modules
$ npm install

Or just:

$ npm install acorn@4.0.7

@EvgenyKravchenko I confirm. Rollback to 1.0.0-beta.26 didn’t help. Looks like the regression came from one of CLI’s unlocked dependencies.

Both regular and AOT builds are affected.

Here is the list of working 1.0.0-beta.28.3 dependencies right before it was broken

Click to expand

├─┬ angular-cli@1.0.0-beta.28.3 │ ├─┬ @angular-cli/ast-tools@1.0.16 │ │ ├── denodeify@1.2.1 │ │ ├─┬ rxjs@5.1.0 │ │ │ └── symbol-observable@1.0.4 │ │ ├── tsickle@0.2.5 extraneous │ │ └── typescript@2.0.10 │ ├── @angular-cli/base-href-webpack@1.0.16 │ ├── @ngtools/json-schema@1.0.2 │ ├─┬ @ngtools/webpack@1.2.5 │ │ ├─┬ enhanced-resolve@2.3.0 │ │ │ ├── graceful-fs@4.1.11 │ │ │ ├─┬ memory-fs@0.3.0 │ │ │ │ ├─┬ errno@0.1.4 │ │ │ │ │ └── prr@0.0.0 │ │ │ │ └─┬ readable-stream@2.2.2 │ │ │ │ ├── buffer-shims@1.0.0 │ │ │ │ ├── core-util-is@1.0.2 │ │ │ │ ├── inherits@2.0.3 │ │ │ │ ├── isarray@1.0.0 │ │ │ │ ├── process-nextick-args@1.0.7 │ │ │ │ ├── string_decoder@0.10.31 │ │ │ │ └── util-deprecate@1.0.2 │ │ │ ├── object-assign@4.1.1 │ │ │ └── tapable@0.2.6 │ │ ├─┬ loader-utils@0.2.16 │ │ │ ├── big.js@3.1.3 │ │ │ ├── emojis-list@2.1.0 │ │ │ └── json5@0.5.1 │ │ ├─┬ magic-string@0.16.0 │ │ │ └── vlq@0.2.1 │ │ └── source-map@0.5.6 │ ├── async@2.1.4 │ ├─┬ autoprefixer@6.7.2 │ │ ├─┬ browserslist@1.7.1 │ │ │ └── electron-to-chromium@1.2.1 │ │ ├── caniuse-db@1.0.30000618 │ │ ├── normalize-range@0.1.2 │ │ ├── num2fraction@1.2.2 │ │ ├─┬ postcss@5.2.11 │ │ │ └── js-base64@2.1.9 │ │ └── postcss-value-parser@3.3.0 │ ├─┬ chalk@1.1.3 │ │ ├── ansi-styles@2.2.1 │ │ ├── escape-string-regexp@1.0.5 │ │ ├── has-ansi@2.0.0 │ │ ├── strip-ansi@3.0.1 │ │ └── supports-color@2.0.0 │ ├─┬ common-tags@1.4.0 │ │ └─┬ babel-runtime@6.22.0 │ │ └── regenerator-runtime@0.10.1 │ ├─┬ css-loader@0.26.1 │ │ ├─┬ loader-utils@0.2.16 │ │ │ ├── big.js@3.1.3 │ │ │ ├── emojis-list@2.1.0 │ │ │ └── json5@0.5.1 │ │ ├── lodash.camelcase@4.3.0 │ │ ├── object-assign@4.1.1 │ │ ├── postcss-modules-extract-imports@1.0.1 │ │ ├─┬ postcss-modules-local-by-default@1.1.1 │ │ │ └── css-selector-tokenizer@0.6.0 │ │ ├─┬ postcss-modules-scope@1.0.2 │ │ │ └── css-selector-tokenizer@0.6.0 │ │ ├─┬ postcss-modules-values@1.2.2 │ │ │ └── icss-replace-symbols@1.0.2 │ │ └── source-list-map@0.1.8 │ ├─┬ cssnano@3.10.0 │ │ ├── decamelize@1.2.0 │ │ ├── defined@1.0.0 │ │ ├─┬ has@1.0.1 │ │ │ └── function-bind@1.1.0 │ │ ├─┬ postcss-calc@5.3.1 │ │ │ ├── postcss-message-helpers@2.0.0 │ │ │ └─┬ reduce-css-calc@1.3.0 │ │ │ ├─┬ math-expression-evaluator@1.2.15 │ │ │ │ └── lodash.indexof@4.0.5 │ │ │ └── reduce-function-call@1.0.2 │ │ ├─┬ postcss-colormin@2.2.1 │ │ │ └─┬ colormin@1.1.2 │ │ │ ├─┬ color@0.11.4 │ │ │ │ ├─┬ color-convert@1.9.0 │ │ │ │ │ └── color-name@1.1.1 │ │ │ │ └── color-string@0.3.0 │ │ │ └── css-color-names@0.0.4 │ │ ├── postcss-convert-values@2.6.0 │ │ ├── postcss-discard-comments@2.0.4 │ │ ├── postcss-discard-duplicates@2.0.2 │ │ ├── postcss-discard-empty@2.1.0 │ │ ├── postcss-discard-overridden@0.1.1 │ │ ├─┬ postcss-discard-unused@2.2.3 │ │ │ └── uniqs@2.0.0 │ │ ├─┬ postcss-filter-plugins@2.0.2 │ │ │ └─┬ uniqid@4.1.1 │ │ │ └── macaddress@0.2.8 │ │ ├── postcss-merge-idents@2.1.7 │ │ ├── postcss-merge-longhand@2.0.2 │ │ ├─┬ postcss-merge-rules@2.1.1 │ │ │ ├─┬ caniuse-api@1.5.3 │ │ │ │ ├── lodash.memoize@4.1.2 │ │ │ │ └── lodash.uniq@4.5.0 │ │ │ ├─┬ postcss-selector-parser@2.2.2 │ │ │ │ ├── flatten@1.0.2 │ │ │ │ ├── indexes-of@1.0.1 │ │ │ │ └── uniq@1.0.1 │ │ │ └── vendors@1.0.1 │ │ ├── postcss-minify-font-values@1.0.5 │ │ ├── postcss-minify-gradients@1.0.5 │ │ ├─┬ postcss-minify-params@1.2.2 │ │ │ └── alphanum-sort@1.0.2 │ │ ├── postcss-minify-selectors@2.1.1 │ │ ├── postcss-normalize-charset@1.1.1 │ │ ├─┬ postcss-normalize-url@3.0.8 │ │ │ ├── is-absolute-url@2.1.0 │ │ │ └─┬ normalize-url@1.9.0 │ │ │ ├── prepend-http@1.0.4 │ │ │ ├─┬ query-string@4.3.1 │ │ │ │ └── strict-uri-encode@1.1.0 │ │ │ └─┬ sort-keys@1.1.2 │ │ │ └── is-plain-obj@1.1.0 │ │ ├── postcss-ordered-values@2.2.3 │ │ ├── postcss-reduce-idents@2.4.0 │ │ ├── postcss-reduce-initial@1.0.1 │ │ ├── postcss-reduce-transforms@1.0.4 │ │ ├─┬ postcss-svgo@2.1.6 │ │ │ ├─┬ is-svg@2.1.0 │ │ │ │ └── html-comment-regex@1.1.1 │ │ │ └─┬ svgo@0.7.2 │ │ │ ├── coa@1.0.1 │ │ │ ├─┬ csso@2.3.1 │ │ │ │ └── clap@1.1.2 │ │ │ ├── sax@1.2.1 │ │ │ └── whet.extend@0.9.9 │ │ ├── postcss-unique-selectors@2.0.2 │ │ └── postcss-zindex@2.2.0 │ ├─┬ debug@2.3.3 │ │ └── ms@0.7.2 │ ├── denodeify@1.2.1 │ ├── diff@2.2.3 │ ├── ember-cli-normalize-entity-name@1.0.0 │ ├── ember-cli-string-utils@1.1.0 │ ├── exists-sync@0.0.3 │ ├── extract-text-webpack-plugin@2.0.0-rc.2 │ ├── file-loader@0.8.5 │ ├─┬ findup@0.1.5 │ │ ├── colors@0.6.2 │ │ └── commander@2.1.0 │ ├─┬ fs-extra@0.30.0 │ │ ├── jsonfile@2.4.0 │ │ └── klaw@1.3.1 │ ├── get-caller-file@1.0.2 │ ├─┬ glob@7.1.1 │ │ ├── fs.realpath@1.0.0 │ │ ├─┬ inflight@1.0.6 │ │ │ └── wrappy@1.0.2 │ │ ├── inherits@2.0.3 │ │ └── once@1.4.0 │ ├─┬ html-webpack-plugin@2.28.0 │ │ ├─┬ html-minifier@3.3.0 │ │ │ ├─┬ camel-case@3.0.0 │ │ │ │ ├─┬ no-case@2.3.1 │ │ │ │ │ └── lower-case@1.1.3 │ │ │ │ └── upper-case@1.1.3 │ │ │ ├── clean-css@4.0.3 │ │ │ ├── commander@2.9.0 │ │ │ ├── he@1.1.1 │ │ │ ├─┬ ncname@1.0.0 │ │ │ │ └── xml-char-classes@1.0.0 │ │ │ ├── param-case@2.1.0 │ │ │ └── relateurl@0.2.7 │ │ ├─┬ pretty-error@2.0.2 │ │ │ ├─┬ renderkid@2.0.0 │ │ │ │ ├─┬ dom-converter@0.1.4 │ │ │ │ │ └── utila@0.3.3 │ │ │ │ ├─┬ htmlparser2@3.3.0 │ │ │ │ │ ├── domhandler@2.1.0 │ │ │ │ │ └── domutils@1.1.6 │ │ │ │ └── utila@0.3.3 │ │ │ └── utila@0.4.0 │ │ └── toposort@1.0.2 │ ├── inflection@1.12.0 │ ├─┬ inquirer@0.12.0 │ │ ├── ansi-escapes@1.4.0 │ │ ├── ansi-regex@2.1.1 │ │ ├─┬ cli-cursor@1.0.2 │ │ │ └─┬ restore-cursor@1.0.1 │ │ │ ├── exit-hook@1.1.1 │ │ │ └── onetime@1.1.0 │ │ ├── cli-width@2.1.0 │ │ ├── figures@1.7.0 │ │ ├─┬ readline2@1.0.1 │ │ │ ├── code-point-at@1.1.0 │ │ │ ├─┬ is-fullwidth-code-point@1.0.0 │ │ │ │ └── number-is-nan@1.0.1 │ │ │ └── mute-stream@0.0.5 │ │ ├── run-async@0.1.0 │ │ ├── rx-lite@3.1.2 │ │ └── string-width@1.0.2 │ ├── isbinaryfile@2.0.4 │ ├── json-loader@0.5.4 │ ├── karma-sourcemap-loader@0.3.7 │ ├─┬ karma-webpack@1.8.1 │ │ ├── async@0.9.2 │ │ ├── lodash@3.10.1 │ │ ├─┬ source-map@0.1.43 │ │ │ └── amdefine@1.0.1 │ │ └─┬ webpack-dev-middleware@1.10.0 │ │ └── range-parser@1.2.0 │ ├─┬ less@2.7.2 │ │ ├─┬ errno@0.1.4 │ │ │ └── prr@0.0.0 │ │ ├── image-size@0.5.1 │ │ ├─┬ promise@7.1.1 │ │ │ └── asap@2.0.5 │ │ └─┬ request@2.79.0 │ │ ├── aws-sign2@0.6.0 │ │ ├── aws4@1.5.0 │ │ ├── caseless@0.11.0 │ │ ├─┬ combined-stream@1.0.5 │ │ │ └── delayed-stream@1.0.0 │ │ ├── forever-agent@0.6.1 │ │ ├─┬ form-data@2.1.2 │ │ │ └── asynckit@0.4.0 │ │ ├─┬ har-validator@2.0.6 │ │ │ ├── commander@2.9.0 │ │ │ └─┬ is-my-json-valid@2.15.0 │ │ │ ├── generate-function@2.0.0 │ │ │ ├─┬ generate-object-property@1.2.0 │ │ │ │ └── is-property@1.0.2 │ │ │ └── jsonpointer@4.0.1 │ │ ├─┬ hawk@3.1.3 │ │ │ ├── boom@2.10.1 │ │ │ ├── cryptiles@2.0.5 │ │ │ ├── hoek@2.16.3 │ │ │ └── sntp@1.0.9 │ │ ├─┬ http-signature@1.1.1 │ │ │ ├── assert-plus@0.2.0 │ │ │ ├─┬ jsprim@1.3.1 │ │ │ │ ├── extsprintf@1.0.2 │ │ │ │ ├── json-schema@0.2.3 │ │ │ │ └── verror@1.3.6 │ │ │ └─┬ sshpk@1.10.2 │ │ │ ├── asn1@0.2.3 │ │ │ ├── assert-plus@1.0.0 │ │ │ ├── bcrypt-pbkdf@1.0.0 │ │ │ ├─┬ dashdash@1.14.1 │ │ │ │ └── assert-plus@1.0.0 │ │ │ ├── ecc-jsbn@0.1.1 │ │ │ ├─┬ getpass@0.1.6 │ │ │ │ └── assert-plus@1.0.0 │ │ │ ├── jodid25519@1.0.2 │ │ │ ├── jsbn@0.1.0 │ │ │ └── tweetnacl@0.14.5 │ │ ├── is-typedarray@1.0.0 │ │ ├── json-stringify-safe@5.0.1 │ │ ├─┬ mime-types@2.1.14 │ │ │ └── mime-db@1.26.0 │ │ ├── oauth-sign@0.8.2 │ │ ├── qs@6.3.0 │ │ ├── stringstream@0.0.5 │ │ ├── tough-cookie@2.3.2 │ │ ├── tunnel-agent@0.4.3 │ │ └── uuid@3.0.1 │ ├── less-loader@2.2.3 │ ├── lodash@4.17.4 │ ├─┬ minimatch@3.0.3 │ │ └─┬ brace-expansion@1.1.6 │ │ ├── balanced-match@0.4.2 │ │ └── concat-map@0.0.1 │ ├── node-modules-path@1.0.1 │ ├─┬ node-sass@4.5.0 │ │ ├── async-foreach@0.1.3 │ │ ├─┬ cross-spawn@3.0.1 │ │ │ └─┬ lru-cache@4.0.2 │ │ │ ├── pseudomap@1.0.2 │ │ │ └── yallist@2.0.0 │ │ ├─┬ gaze@1.1.2 │ │ │ └─┬ globule@1.1.0 │ │ │ └── lodash@4.16.6 │ │ ├── get-stdin@4.0.1 │ │ ├── in-publish@2.0.0 │ │ ├── lodash.assign@4.2.0 │ │ ├── lodash.clonedeep@4.5.0 │ │ ├── lodash.mergewith@4.6.0 │ │ ├─┬ meow@3.7.0 │ │ │ ├─┬ camelcase-keys@2.1.0 │ │ │ │ └── camelcase@2.1.1 │ │ │ ├─┬ loud-rejection@1.6.0 │ │ │ │ ├─┬ currently-unhandled@0.4.1 │ │ │ │ │ └── array-find-index@1.0.2 │ │ │ │ └── signal-exit@3.0.2 │ │ │ ├── map-obj@1.0.1 │ │ │ ├─┬ normalize-package-data@2.3.5 │ │ │ │ ├── hosted-git-info@2.1.5 │ │ │ │ ├─┬ is-builtin-module@1.0.0 │ │ │ │ │ └── builtin-modules@1.1.1 │ │ │ │ └─┬ validate-npm-package-license@3.0.1 │ │ │ │ ├─┬ spdx-correct@1.0.2 │ │ │ │ │ └── spdx-license-ids@1.2.2 │ │ │ │ └── spdx-expression-parse@1.0.4 │ │ │ ├─┬ read-pkg-up@1.0.1 │ │ │ │ ├─┬ find-up@1.1.2 │ │ │ │ │ └── path-exists@2.1.0 │ │ │ │ └─┬ read-pkg@1.1.0 │ │ │ │ ├── load-json-file@1.1.0 │ │ │ │ └── path-type@1.1.0 │ │ │ ├─┬ redent@1.0.0 │ │ │ │ ├── indent-string@2.1.0 │ │ │ │ └── strip-indent@1.0.1 │ │ │ └── trim-newlines@1.0.0 │ │ ├── nan@2.5.1 │ │ ├─┬ node-gyp@3.5.0 │ │ │ ├── fstream@1.0.10 │ │ │ ├── osenv@0.1.4 │ │ │ └─┬ tar@2.2.1 │ │ │ └── block-stream@0.0.9 │ │ ├─┬ npmlog@4.0.2 │ │ │ ├─┬ are-we-there-yet@1.1.2 │ │ │ │ ├── delegates@1.0.0 │ │ │ │ └─┬ readable-stream@2.2.2 │ │ │ │ └── isarray@1.0.0 │ │ │ ├── console-control-strings@1.1.0 │ │ │ ├─┬ gauge@2.7.2 │ │ │ │ ├── aproba@1.0.4 │ │ │ │ ├── has-unicode@2.0.1 │ │ │ │ ├── supports-color@0.2.0 │ │ │ │ └── wide-align@1.1.0 │ │ │ └── set-blocking@2.0.0 │ │ ├─┬ sass-graph@2.1.2 │ │ │ └─┬ yargs@4.8.1 │ │ │ ├── cliui@3.2.0 │ │ │ ├── window-size@0.2.0 │ │ │ └─┬ yargs-parser@2.4.1 │ │ │ └── camelcase@3.0.0 │ │ └─┬ stdout-stream@1.4.0 │ │ └─┬ readable-stream@2.2.2 │ │ ├── buffer-shims@1.0.0 │ │ ├── isarray@1.0.0 │ │ ├── process-nextick-args@1.0.7 │ │ └── util-deprecate@1.0.2 │ ├─┬ nopt@3.0.6 │ │ └── abbrev@1.0.9 │ ├─┬ opn@4.0.1 │ │ └── pinkie-promise@2.0.1 │ ├─┬ ora@0.2.3 │ │ └── cli-spinners@0.1.2 │ ├─┬ portfinder@1.0.9 │ │ └── async@1.5.2 │ ├── postcss-loader@0.9.1 │ ├── raw-loader@0.5.1 │ ├─┬ remap-istanbul@0.6.4 │ │ ├── amdefine@1.0.0 │ │ ├─┬ gulp-util@3.0.7 │ │ │ ├── dateformat@1.0.12 │ │ │ └── object-assign@3.0.0 │ │ └─┬ through2@2.0.1 │ │ └─┬ readable-stream@2.0.6 │ │ └── isarray@1.0.0 │ ├── resolve@1.2.0 │ ├── rimraf@2.5.4 │ ├── rsvp@3.3.3 │ ├── sass-loader@4.1.1 │ ├── script-loader@0.7.0 │ ├── semver@5.3.0 │ ├── silent-error@1.0.1 │ ├─┬ source-map-loader@0.1.6 │ │ ├── async@0.9.2 │ │ └── source-map@0.1.43 │ ├── sourcemap-istanbul-instrumenter-loader@0.2.0 │ ├── style-loader@0.13.1 │ ├─┬ stylus@0.54.5 │ │ ├── css-parse@1.7.0 │ │ ├── glob@7.0.6 │ │ ├── sax@0.5.8 │ │ └── source-map@0.1.43 │ ├─┬ stylus-loader@2.4.0 │ │ └── when@3.6.4 │ ├─┬ temp@0.8.3 │ │ ├── os-tmpdir@1.0.2 │ │ └── rimraf@2.2.8 │ ├── through@2.3.8 │ ├─┬ url-loader@0.5.7 │ │ └── mime@1.2.11 │ ├─┬ walk-sync@0.2.7 │ │ ├── ensure-posix-path@1.0.2 │ │ └── matcher-collection@1.0.4 │ ├─┬ webpack@2.2.0 │ │ ├── acorn@4.0.4 │ │ ├── acorn-dynamic-import@2.0.1 │ │ ├─┬ ajv@4.11.2 │ │ │ ├── co@4.6.0 │ │ │ └─┬ json-stable-stringify@1.0.1 │ │ │ └── jsonify@0.0.0 │ │ ├── ajv-keywords@1.5.1 │ │ ├── enhanced-resolve@3.0.3 │ │ ├── interpret@1.0.1 │ │ ├── loader-runner@2.3.0 │ │ ├─┬ memory-fs@0.4.1 │ │ │ └─┬ readable-stream@2.2.2 │ │ │ └── isarray@1.0.0 │ │ ├─┬ node-libs-browser@2.0.0 │ │ │ ├── assert@1.4.1 │ │ │ ├─┬ browserify-zlib@0.1.4 │ │ │ │ └── pako@0.2.9 │ │ │ ├─┬ buffer@4.9.1 │ │ │ │ ├── base64-js@1.2.0 │ │ │ │ ├── ieee754@1.1.8 │ │ │ │ └── isarray@1.0.0 │ │ │ ├─┬ console-browserify@1.1.0 │ │ │ │ └── date-now@0.1.4 │ │ │ ├── constants-browserify@1.0.0 │ │ │ ├─┬ crypto-browserify@3.11.0 │ │ │ │ ├─┬ browserify-cipher@1.0.0 │ │ │ │ │ ├─┬ browserify-aes@1.0.6 │ │ │ │ │ │ └── buffer-xor@1.0.3 │ │ │ │ │ ├─┬ browserify-des@1.0.0 │ │ │ │ │ │ └── des.js@1.0.0 │ │ │ │ │ └── evp_bytestokey@1.0.0 │ │ │ │ ├─┬ browserify-sign@4.0.0 │ │ │ │ │ ├── bn.js@4.11.6 │ │ │ │ │ ├── browserify-rsa@4.0.1 │ │ │ │ │ ├─┬ elliptic@6.3.2 │ │ │ │ │ │ ├── brorand@1.0.6 │ │ │ │ │ │ └── hash.js@1.0.3 │ │ │ │ │ └─┬ parse-asn1@5.0.0 │ │ │ │ │ └── asn1.js@4.9.1 │ │ │ │ ├── create-ecdh@4.0.0 │ │ │ │ ├─┬ create-hash@1.1.2 │ │ │ │ │ ├── cipher-base@1.0.3 │ │ │ │ │ ├── ripemd160@1.0.1 │ │ │ │ │ └── sha.js@2.4.8 │ │ │ │ ├── create-hmac@1.1.4 │ │ │ │ ├─┬ diffie-hellman@5.0.2 │ │ │ │ │ └── miller-rabin@4.0.0 │ │ │ │ ├── pbkdf2@3.0.9 │ │ │ │ ├── public-encrypt@4.0.0 │ │ │ │ └── randombytes@2.0.3 │ │ │ ├── domain-browser@1.1.7 │ │ │ ├── events@1.1.1 │ │ │ ├── https-browserify@0.0.1 │ │ │ ├── os-browserify@0.2.1 │ │ │ ├── path-browserify@0.0.0 │ │ │ ├── process@0.11.9 │ │ │ ├── punycode@1.4.1 │ │ │ ├── querystring-es3@0.2.1 │ │ │ ├─┬ readable-stream@2.2.2 │ │ │ │ └── isarray@1.0.0 │ │ │ ├─┬ stream-browserify@2.0.1 │ │ │ │ └─┬ readable-stream@2.2.2 │ │ │ │ └── isarray@1.0.0 │ │ │ ├─┬ stream-http@2.6.3 │ │ │ │ ├── builtin-status-codes@3.0.0 │ │ │ │ ├─┬ readable-stream@2.2.2 │ │ │ │ │ └── isarray@1.0.0 │ │ │ │ └── to-arraybuffer@1.0.1 │ │ │ ├── string_decoder@0.10.31 │ │ │ ├─┬ timers-browserify@2.0.2 │ │ │ │ └── setimmediate@1.0.5 │ │ │ ├── tty-browserify@0.0.0 │ │ │ ├─┬ url@0.11.0 │ │ │ │ ├── punycode@1.3.2 │ │ │ │ └── querystring@0.2.0 │ │ │ ├─┬ util@0.10.3 │ │ │ │ └── inherits@2.0.1 │ │ │ └── vm-browserify@0.0.4 │ │ ├─┬ supports-color@3.2.3 │ │ │ └── has-flag@1.0.0 │ │ ├── tapable@0.2.6 │ │ ├─┬ uglify-js@2.7.5 │ │ │ ├── async@0.2.10 │ │ │ ├── uglify-to-browserify@1.0.2 │ │ │ └─┬ yargs@3.10.0 │ │ │ ├── camelcase@1.2.1 │ │ │ ├─┬ cliui@2.1.0 │ │ │ │ ├─┬ center-align@0.1.3 │ │ │ │ │ ├─┬ align-text@0.1.4 │ │ │ │ │ │ ├── longest@1.0.1 │ │ │ │ │ │ └── repeat-string@1.6.1 │ │ │ │ │ └── lazy-cache@1.0.4 │ │ │ │ └── right-align@0.1.3 │ │ │ └── window-size@0.1.0 │ │ ├── watchpack@1.2.0 │ │ └─┬ yargs@6.6.0 │ │ ├── camelcase@3.0.0 │ │ ├─┬ cliui@3.2.0 │ │ │ └── wrap-ansi@2.1.0 │ │ ├─┬ os-locale@1.4.0 │ │ │ └─┬ lcid@1.0.0 │ │ │ └── invert-kv@1.0.0 │ │ ├── require-directory@2.1.1 │ │ ├── require-main-filename@1.0.1 │ │ ├── which-module@1.0.0 │ │ ├── y18n@3.2.1 │ │ └── yargs-parser@4.2.1 │ ├─┬ webpack-dev-server@2.2.0-rc.0 │ │ ├─┬ compression@1.6.2 │ │ │ ├─┬ accepts@1.3.3 │ │ │ │ └── negotiator@0.6.1 │ │ │ ├── bytes@2.3.0 │ │ │ ├── compressible@2.0.9 │ │ │ ├─┬ debug@2.2.0 │ │ │ │ └── ms@0.7.1 │ │ │ ├── on-headers@1.0.1 │ │ │ └── vary@1.1.0 │ │ ├── connect-history-api-fallback@1.3.0 │ │ ├─┬ express@4.14.1 │ │ │ ├── array-flatten@1.1.1 │ │ │ ├── content-disposition@0.5.2 │ │ │ ├── cookie@0.3.1 │ │ │ ├── cookie-signature@1.0.6 │ │ │ ├─┬ debug@2.2.0 │ │ │ │ └── ms@0.7.1 │ │ │ ├── encodeurl@1.0.1 │ │ │ ├── escape-html@1.0.3 │ │ │ ├── etag@1.7.0 │ │ │ ├─┬ finalhandler@0.5.1 │ │ │ │ └─┬ debug@2.2.0 │ │ │ │ └── ms@0.7.1 │ │ │ ├── fresh@0.3.0 │ │ │ ├── merge-descriptors@1.0.1 │ │ │ ├── methods@1.1.2 │ │ │ ├── path-to-regexp@0.1.7 │ │ │ ├─┬ proxy-addr@1.1.3 │ │ │ │ ├── forwarded@0.1.0 │ │ │ │ └── ipaddr.js@1.2.0 │ │ │ ├── qs@6.2.0 │ │ │ ├─┬ send@0.14.2 │ │ │ │ └─┬ debug@2.2.0 │ │ │ │ └── ms@0.7.1 │ │ │ └── serve-static@1.11.2 │ │ ├─┬ http-proxy-middleware@0.17.3 │ │ │ ├─┬ is-glob@3.1.0 │ │ │ │ └── is-extglob@2.1.1 │ │ │ └─┬ micromatch@2.3.11 │ │ │ ├─┬ arr-diff@2.0.0 │ │ │ │ └── arr-flatten@1.0.1 │ │ │ ├─┬ braces@1.8.5 │ │ │ │ ├─┬ expand-range@1.8.2 │ │ │ │ │ └─┬ fill-range@2.2.3 │ │ │ │ │ ├── is-number@2.1.0 │ │ │ │ │ ├─┬ isobject@2.1.0 │ │ │ │ │ │ └── isarray@1.0.0 │ │ │ │ │ └── randomatic@1.1.6 │ │ │ │ ├── preserve@0.2.0 │ │ │ │ └── repeat-element@1.1.2 │ │ │ ├─┬ expand-brackets@0.1.5 │ │ │ │ └── is-posix-bracket@0.1.1 │ │ │ ├── extglob@0.3.2 │ │ │ ├── filename-regex@2.0.0 │ │ │ ├─┬ kind-of@3.1.0 │ │ │ │ └── is-buffer@1.1.4 │ │ │ ├── normalize-path@2.0.1 │ │ │ ├─┬ object.omit@2.0.1 │ │ │ │ ├─┬ for-own@0.1.4 │ │ │ │ │ └── for-in@0.1.6 │ │ │ │ └── is-extendable@0.1.1 │ │ │ ├─┬ parse-glob@3.0.4 │ │ │ │ ├── glob-base@0.3.0 │ │ │ │ └── is-dotfile@1.0.2 │ │ │ └─┬ regex-cache@0.4.3 │ │ │ ├── is-equal-shallow@0.1.3 │ │ │ └── is-primitive@2.0.0 │ │ ├── opn@4.0.2 │ │ ├─┬ serve-index@1.8.0 │ │ │ ├── batch@0.5.3 │ │ │ └─┬ debug@2.2.0 │ │ │ └── ms@0.7.1 │ │ ├─┬ sockjs@0.3.18 │ │ │ ├── faye-websocket@0.10.0 │ │ │ └── uuid@2.0.3 │ │ ├─┬ sockjs-client@1.1.1 │ │ │ ├─┬ eventsource@0.1.6 │ │ │ │ └─┬ original@1.0.0 │ │ │ │ └── url-parse@1.0.5 │ │ │ ├── faye-websocket@0.11.1 │ │ │ └─┬ url-parse@1.1.7 │ │ │ └── querystringify@0.0.4 │ │ ├─┬ spdy@3.4.4 │ │ │ ├── handle-thing@1.2.5 │ │ │ ├── http-deceiver@1.2.7 │ │ │ ├── select-hose@2.0.0 │ │ │ └─┬ spdy-transport@2.0.18 │ │ │ ├─┬ hpack.js@2.1.6 │ │ │ │ └─┬ readable-stream@2.2.2 │ │ │ │ └── isarray@1.0.0 │ │ │ ├── obuf@1.1.1 │ │ │ ├─┬ readable-stream@2.2.2 │ │ │ │ └── isarray@1.0.0 │ │ │ └─┬ wbuf@1.7.2 │ │ │ └── minimalistic-assert@1.0.0 │ │ └─┬ yargs@6.6.0 │ │ ├── camelcase@3.0.0 │ │ ├── cliui@3.2.0 │ │ └── yargs-parser@4.2.1 │ ├── webpack-merge@2.6.1 │ └── webpack-sources@0.1.4

As a temporary solution just update acorn package to 4.0.7

Even rollback to old working version does not help

@beeman runing server of angular-cli work good now, but after update files ts webpack not compile them !! and i already install acorn@4.0.7

With latest @angular/cli same errors.

@angular/cli: 1.0.0-beta.29 node: 7.2.0 os: darwin x64 @angular/common: 2.4.5 @angular/compiler: 2.4.5 @angular/core: 2.4.5 @angular/forms: 2.4.5 @angular/http: 2.4.5 @angular/platform-browser: 2.4.5 @angular/platform-browser-dynamic: 2.4.5 @angular/router: 3.4.5 @angular/cli: 1.0.0-beta.29 @angular/compiler-cli: 2.4.5

Thank you so, SO much @beeman and @EvgenyKravchenko, all working now… was frustrating me for the past 4 hours. 😛 ❤️

I’ve managed to get it running. Delete your node_modules folder after creating a project with ng new proj-name and modify the rxjs entry (line 24) on package.json removing the “^” before it. It should look like: "rxjs": "5.0.1",. Re-run npm install and ng serve should work fine.

Edit: Forgot to add, I’m running the latest build 1.0.0-beta.29

Guys, few minutes ago a throwed similar error, but i not used something from angular or angular cli. My error: ERROR in ./~/json3/lib/json3.js Module parse failed: /home/mogafk/web/task4/node_modules/json3/lib/json3.js Parenthesized pattern (89:12) You may need an appropriate loader to handle this file type. | if (stringifySupported) { | // A test function object with a custom toJSON method. | (value = function () { | return 1; | }) .toJSON = value; @ ./~/sockjs-client/lib/main.js 7:12-28 @ ./~/sockjs-client/lib/entry.js @ (webpack)-dev-server/client/socket.js @ (webpack)-dev-server/client?http://localhost:8080 @ multi (webpack)-dev-server/client?http://localhost:8080 ./app.js

I solved this problem downgrade webpack and webpack-dev-server to 2.2.0(from 2.2.1). I hope this information help you solved this problem. ps: sorry, my english is suck

Didn’t update CLI. Newly created projects got these errors.

I’m having the same issue with existing project and yes, i updated both global and local packages

angular-cli: 1.0.0-beta.28.3 node: 6.9.5 os: win32 x64 @angular/common: 2.4.5 @angular/compiler: 2.4.5 @angular/core: 2.4.5 @angular/forms: 2.4.5 @angular/http: 2.4.5 @angular/platform-browser: 2.4.5 @angular/platform-browser-dynamic: 2.4.5 @angular/router: 3.4.5 @angular/compiler-cli: 2.4.5 @angular/flex-layout: 2.0.0-beta.4

added “acorn”: “4.0.7” to package.json fixed this issue for me

Looks like latest versions work with projects, which were bootstrapped before regression

Same issue,

I can confirm it happens on new project and when updating.

i tried @angular/cli and angular-cli