-
Notifications
You must be signed in to change notification settings - Fork 12k
1.5.0's new --bundle-dependencies=all causes build warnings out of the box #8035
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
I am also getting this warning as well after I updated to |
+1 |
Getting this issue in |
Any update on this? |
+1 |
In my case I get the same "Critical dependency: the request of a dependency is an expression". However, I simply ignore it & everything seems to work fine. I haven't noticed any bugs/issues caused by it in production. I have --bundle-dependencies=all turned on, latest build of angular 5, & I use serverSideRendering/universal (using a .net core backend on windows server+iis) in my app without copying node_modules to my production server. |
+1 |
Thanks for reporting this issue. This issue is now obsolete due to changes in the recent releases. Please update to the most recent Angular CLI version. If the problem persists after upgrading, please open a new issue, provide a simple repository reproducing the problem, and describe the difference between the expected and current behavior. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Firstly, thanks again to @hansl for implementing
--bundle-dependencies
.Bug Report or Feature Request (mark with an
x
)Versions.
1.5.0-rc.0
Repro steps.
npm install -g @angular/[email protected]
ng new MyApp
cd MyApp
.angular-cli.json
to add"platform": "server"
to the config for the app.ng build --prod --bundle-dependencies=all
Expected: Build completes without warnings/errors
Actual:
... plus many more lines of warnings.
Desired functionality.
Builds without errors/warnings in the default case for
platform: server
and--bundle-dependencies=all
.Mention any other details that might be useful.
In
@angular/cli
1.4.x, it was possible to make fully-bundled server builds work without errors by modifying thenode_modules/@angular/cli/models/webpack-configs/
files in two ways:server.js
to setexternals
to an empty arrayproduction.js
so thatUglifyJsPlugin
was not added to the plugins array for server builds.However, in 1.5.0-rc.0, the
Critical dependency: the request of a dependency is an expression
warnings still happen regardless ofUglifyJsPlugin
. So something else must have changed in 1.5.0 to trigger these additional warnings.The text was updated successfully, but these errors were encountered: