angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

[es2015] Constructor don't call super

Open mantyz opened this issue 8 years ago • 5 comments

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)

mantyz avatar Apr 05 '18 17:04 mantyz

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 avatar Apr 05 '18 19:04 filipesilva

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

markgoho avatar Apr 29 '18 01:04 markgoho

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.

filipesilva avatar May 05 '18 19:05 filipesilva

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

jmpreston avatar Jul 06 '18 22:07 jmpreston

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.