Closed santoshmallah closed 9 months ago
This looks like a duplicate of https://github.com/angular/angular-cli/issues/25543. If the problem persists please open a new issue with a minimal reproduction. A good way to make a minimal repro is to create a new app via ng new repro-app
and add the minimum possible code to show the problem. Then you can push this repository to github and link it here.
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.
Command
build
Is this a regression?
The previous version in which this bug was not present was
No response
Description
Trying to build angular version with --optimization=true flag
Error:
Uncaught ReferenceError: Nu is not defined at 743 (compiler.mjs:8685:29) at r (bootstrap:19:1) at 7932 (main.js:1:143) at r (bootstrap:19:1) at .$:292:1 at r.O (chunk loaded:23:1) at .$:292:1 at n (jsonp chunk loading:71:1) at main.js:1:69
when making changes in this flag --optimization=false, it working fine , but the problem is that the main.js file bundle size is too high, and it requires time to load the screen.
Minimal Reproduction
ng build --configuration=dev --build-optimizer=true --optimization=true --source-map --named-chunks --verbose
Exception or Error
Your Environment
Anything else relevant?
Here is my angular.json file
tcconfig.json