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

@angular-devkit/build-angular 0.900.0-rc.6 "Maximum call stack size exceeded" when Generating ES5 bundles #16441

Closed
1 of 15 tasks
kccsf opened this issue Dec 13, 2019 · 4 comments · Fixed by #16442
Closed
1 of 15 tasks
Labels
Milestone

Comments

@kccsf
Copy link

kccsf commented Dec 13, 2019

🐞 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: 0.900.0-rc.4. Appears to have been introduced with 0.900.0-rc.5.

Description

Everything fine during dev. When building for prod with:

    ng build --prod
It fails at:
    Generating ES5 bundles for differential loading...
With:
    Maximum call stack size exceeded

🔬 Minimal Reproduction

This is a large project; gonna take me a while to create a minimal reproduction I think.....

🔥 Exception or Error

[error] RangeError: C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\dist\MiscProj\main-es2015.8b8a10c587d43644f9e5.js: Maximum call stack size exceeded
    at Object.validate (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\types\lib\definitions\utils.js:120:20)
    at validateField (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\types\lib\validators\validate.js:22:9)
    at Object.validate (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\types\lib\validators\validate.js:16:3)
    at NodePath._replaceWith (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\traverse\lib\path\replacement.js:172:7)
    at NodePath.replaceWith (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\traverse\lib\path\replacement.js:156:8)
    at PluginPass.StringLiteral (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@angular-devkit\build-angular\src\utils\process-bundle.js:311:30)
    at newFn (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\traverse\lib\visitors.js:179:21)
    at NodePath._call (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\traverse\lib\path\context.js:55:20)
    at NodePath.call (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\traverse\lib\path\context.js:42:17)
    at NodePath.visit (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\traverse\lib\path\context.js:90:31)
    at TraversalContext.visitQueue (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\traverse\lib\context.js:112:16)
    at TraversalContext.visitQueue (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\traverse\lib\context.js:118:21)
    at TraversalContext.visitQueue (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\traverse\lib\context.js:118:21)
    at TraversalContext.visitQueue (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\traverse\lib\context.js:118:21)
    at TraversalContext.visitQueue (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\traverse\lib\context.js:118:21)
    at TraversalContext.visitQueue (C:\Visual Studio Projects\MiscProj\MiscProj.Web\ClientApp\node_modules\@babel\traverse\lib\context.js:118:21)

🌍 Your Environment

Angular CLI: 9.0.0-rc.6
Node: 10.16.0
OS: win32 x64

Angular: 9.0.0-rc.6
... 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.0-rc.5
@angular-devkit/build-angular      0.900.0-rc.5
@angular-devkit/build-optimizer    0.900.0-rc.5
@angular-devkit/build-webpack      0.900.0-rc.5
@angular-devkit/core               9.0.0-rc.5
@angular-devkit/schematics         9.0.0-rc.6
@angular/cdk                       9.0.0-rc.5
@angular/flex-layout               8.0.0-beta.27
@angular/http                      8.0.0-beta.10
@angular/material                  9.0.0-rc.5
@angular/material-moment-adapter   9.0.0-rc.5
@ngtools/webpack                   9.0.0-rc.5
@schematics/angular                9.0.0-rc.6
@schematics/update                 0.900.0-rc.6
rxjs                               6.5.3
typescript                         3.6.4
webpack                            4.41.2
@clydin
Copy link
Member

clydin commented Dec 13, 2019

Does your project use web workers?

@kccsf
Copy link
Author

kccsf commented Dec 13, 2019

Not directly (I use pdf.js which may use one....)

@kccsf
Copy link
Author

kccsf commented Dec 13, 2019

@clydin - Made this change locally - can confirm it fixed my issue. Many thanks for such a quick response.

@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 Jan 17, 2020
@clydin clydin removed their assignment Jun 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
3 participants