Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ng build - ES5 bundles -> Unknown helper createSuper #17275

Closed
1 of 15 tasks
PeS82 opened this issue Mar 21, 2020 · 3 comments
Closed
1 of 15 tasks

ng build - ES5 bundles -> Unknown helper createSuper #17275

PeS82 opened this issue Mar 21, 2020 · 3 comments
Labels
Milestone

Comments

@PeS82
Copy link

PeS82 commented Mar 21, 2020

🐞 Bug report

Command (mark with an x)

  • new
  • build
  • serve
  • test
  • e2e
  • generate
  • add
  • update
  • lint
  • xi18n
  • run
  • config
  • help
  • version
  • doc

Is this a regression?

Yes, the previous version in which this bug was not present was: 9.0.6

Description

Any ng build ends up with An unhandled exception occurred: C:\my\path\main-es2015.js: Unknown helper createSuper

🔬 Minimal Reproduction

ng build or ng build--prod

🔥 Exception or Error


Generating ES5 bundles for differential loading...
An unhandled exception occurred: C:\my\path\main-es2015.js: Unknown helper createSuper
See "C:\Users\Me\AppData\Local\Temp\ng-sYZMmM\angular-errors.log" for further details.

and the angular-errors.log:

[error] ReferenceError: C:\my\path\main-es2015.js: Unknown helper createSuper
    at loadHelper (C:\my\path\node_modules\@babel\helpers\lib\index.js:225:27)
    at Object.ensure (C:\my\path\node_modules\@babel\helpers\lib\index.js:270:3)
    at File.addHelper (C:\my\path\node_modules\@babel\core\lib\transformation\file\file.js:203:15)
    at pushInheritsToBody (C:\my\path\node_modules\@babel\plugin-transform-classes\lib\transformClass.js:471:384)
    at pushConstructorToBody (C:\my\path\node_modules\@babel\plugin-transform-classes\lib\transformClass.js:461:5)
    at pushConstructor (C:\my\path\node_modules\@babel\plugin-transform-classes\lib\transformClass.js:449:5)
    at pushBody (C:\my\path\node_modules\@babel\plugin-transform-classes\lib\transformClass.js:187:11)
    at buildBody (C:\my\path\node_modules\@babel\plugin-transform-classes\lib\transformClass.js:133:5)
    at classTransformer (C:\my\path\node_modules\@babel\plugin-transform-classes\lib\transformClass.js:537:5)
    at transformClass (C:\my\path\node_modules\@babel\plugin-transform-classes\lib\transformClass.js:573:10)
    at PluginPass.ClassExpression (C:\my\path\node_modules\@babel\plugin-transform-classes\lib\index.js:63:54)
    at newFn (C:\my\path\node_modules\@babel\traverse\lib\visitors.js:179:21)
    at NodePath._call (C:\my\path\node_modules\@babel\traverse\lib\path\context.js:55:20)
    at NodePath.call (C:\my\path\node_modules\@babel\traverse\lib\path\context.js:42:17)
    at NodePath.visit (C:\my\path\node_modules\@babel\traverse\lib\path\context.js:90:31)
    at TraversalContext.visitQueue (C:\my\path\node_modules\@babel\traverse\lib\context.js:112:16)

🌍 Your Environment


Angular CLI: 9.0.7
Node: 12.3.1
OS: win32 x64

Angular: 9.0.7
... animations, cli, common, compiler, compiler-cli, core, forms
... language-service, localize, platform-browser
... platform-browser-dynamic, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.7
@angular-devkit/build-angular     0.900.7
@angular-devkit/build-optimizer   0.900.7
@angular-devkit/build-webpack     0.900.7
@angular-devkit/core              9.0.7
@angular-devkit/schematics        9.0.7
@angular/cdk                      9.1.3
@angular/flex-layout              9.0.0-beta.29
@angular/material                 9.1.3
@ngtools/webpack                  9.0.7
@schematics/angular               9.0.7
@schematics/update                0.900.7
rxjs                              6.5.4
typescript                        3.7.5
webpack                           4.41.2

Anything else relevant?

Tried to install @babel/compat-data (mentioned here) as it seems babel related , did not help

EDIT:

Downgrading to

    "@angular-devkit/build-angular": "^0.900.6",
    "@angular/cli": "^9.0.6",
    "@angular/compiler-cli": "^9.0.6",

which returned the environment to:

Angular CLI: 9.0.6
Node: 12.3.1
OS: win32 x64

Angular: 9.0.7
... animations, common, compiler, core, forms, language-service
... localize, platform-browser, platform-browser-dynamic, router
Ivy Workspace: Yes

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.900.6
@angular-devkit/build-angular     0.900.6
@angular-devkit/build-optimizer   0.900.6
@angular-devkit/build-webpack     0.900.6
@angular-devkit/core              9.0.6
@angular-devkit/schematics        9.0.6
@angular/cdk                      9.1.3
@angular/cli                      9.0.6
@angular/compiler-cli             9.0.6
@angular/flex-layout              9.0.0-beta.29
@angular/material                 9.1.3
@ngtools/webpack                  9.0.6
@schematics/angular               9.0.6
@schematics/update                0.900.6
rxjs                              6.5.4
typescript                        3.7.5
webpack                           4.41.2

returned the functionality of ng build back.

@alan-agius4 alan-agius4 added area: @angular-devkit/build-angular freq1: low Only reported by a handful of users who observe it rarely severity3: broken labels Mar 23, 2020
@ngbot ngbot bot modified the milestone: needsTriage Mar 23, 2020
@ngbot ngbot bot modified the milestones: needsTriage, Backlog Mar 23, 2020
@alan-agius4
Copy link
Collaborator

Related to babel/babel#11298

@alan-agius4
Copy link
Collaborator

Closed via #17280

@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Apr 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants