Angular-cli: [es2015] Constructor don't call super

Created on 5 Apr 2018  路  5Comments  路  Source: angular/angular-cli

Versions

Angular CLI: 6.0.0-rc.1
Node: 8.11.1
OS: linux x64
Angular: 6.0.0-rc.1
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router


@angular-devkit/architect: 0.5.1
@angular-devkit/build-angular: 0.5.1
@angular-devkit/build-optimizer: 0.5.1
@angular-devkit/core: 0.5.1
@angular-devkit/schematics: 0.5.1
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 6.0.0-rc.1
@schematics/angular: 0.5.1
@schematics/update: 0.5.1
typescript: 2.7.2
webpack: 4.5.0
Linux (Debian 8)

Repro steps

  • ng new project
  • change tsconfig.json target to es2015
  • ng serve --prod
  • run localhost:4200
  • open browser DevTools console

Observed behavior

bug

Desired behavior

I want to see the demo page, but I see an error in the console.

Mention any other details that might be useful (optional)

bufix

Most helpful comment

It only took 6 hours of troubleshooting to find this thread but in the angular.json file this works:
"buildOptimizer": false,

All 5 comments

I think this happens because Build Optimizer does not support ES2015 yet. This is something we mean to support. Meanwhile you can turn off Build Optimizer in your production configuration in the angular.json file.

@filipesilva is there any urgency to fixing this? Or is it like if we set the output to es6 then it's already "optimized" and we're not losing much by not having Build Optimizer.

Heya, just wanted to mention that we are tracking this problem in https://github.com/angular/devkit/issues/816.

@markgoho I don't have an exact timeframe but it is definitely a 6.x concern.

It only took 6 hours of troubleshooting to find this thread but in the angular.json file this works:
"buildOptimizer": false,

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

NCC1701M picture NCC1701M  路  3Comments

sysmat picture sysmat  路  3Comments

MateenKadwaikar picture MateenKadwaikar  路  3Comments

hartjo picture hartjo  路  3Comments

IngvarKofoed picture IngvarKofoed  路  3Comments