-
Notifications
You must be signed in to change notification settings - Fork 929
webpack AoT build hangs at @firebase/util/dist/index.cjs.js #874
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
Comments
Hey there! I couldn't figure out what this issue is about, so I've labeled it for a human to triage. Hang tight. |
Hmmm this issue does not seem to follow the issue template. Make sure you provide all the required information. |
Potential bug found Conflict with @angular-devkit/build-optimizer/webpack-loader' See below code snippet: config buildOptimizerLoader
execlude @firebase/database/dist from buildOptimizerLoader(AoT) build success in AoT mode
But if not, the build will freeze at This can not be reproduced when the project is small. |
Bug report
What is the current behavior?
When I run
npm run build:aot
The process is stuck in different files each time but always at 68% - 69%69% building modules 1720/1726 modules 6 active …ient/node_modules/....js
The memory is used over 10GB, normally only 2GB at most.
The
build:aot
run as follows:npm run clean:dist && npm run clean:aot && cross-env BUILD_AOT=1 SOURCE_MAP=0 npm run webpack -- --config config/webpack.prod.js --progress --profile --bail
Also, I increased the memory allocation to webpack command:
node --max_old_space_size=12288 node_modules/webpack/bin/webpack.js
My node version is v10.2.1, npm version is
5.6.0
or6.1.0
all the same issueList of package used I think it may cause the issue:
All above are updated to the current latest
If the current behavior is a bug, please provide the steps to reproduce.
The prod webpack config is as follows:
What is the expected behavior?
It builds successfully to the dist folder, not sure which package break this build
Other relevant information:
webpack version: latest
Node.js version: latest
Operating System: macos 10.13.4
Additional tools: Angular CLI, node-sass, pre
The text was updated successfully, but these errors were encountered: