简体   繁体   中英

ng build --prod is failing on Terser

I am running ng build --prod on angular 7 application (includes vs C# app on the BE). I am getting an error

ERROR in scripts.db02b1660e4ae815041b.js from Terser
Unexpected token: keyword (var) [scripts.db02b1660e4ae815041b.js:5,8]

It looks like that the problem not with the plugin itself but like it can't resolve something.

Does anyone have any ideas?

Try to search for keyword var in your code. I think angular wouldnt allow using var keyword

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM