Could not build the project when put ng build --prod, getting

Having below error while build the project at production mode . this error occurred after removed bootstrap from the project. Have tried to downgrade the Terser version to 3.14 but no luck.

Please help ASAP.

Error: scripts.1e577da05fd3b99015d8.js from Terser
Unexpected character ‘@’ [scripts.1e577da05fd3b99015d8.js:3,0]
at js_error (E:\Projects\Angular\PorticoWebApp\node_modules\terser-webpack-plugin\node_modules\terser\dist\bundle.min.js:550:11)
at parse_error (E:\Projects\Angular\PorticoWebApp\node_modules\terser-webpack-plugin\node_modules\terser\dist\bundle.min.js:686:9)
at Object.next_token [as input] (E:\Projects\Angular\PorticoWebApp\node_modules\terser-webpack-plugin\node_modules\terser\dist\bundle.min.js:1119:9)
at peek (E:\Projects\Angular\PorticoWebApp\node_modules\terser-webpack-plugin\node_modules\terser\dist\bundle.min.js:1254:56)
at next (E:\Projects\Angular\PorticoWebApp\node_modules\terser-webpack-plugin\node_modules\terser\dist\bundle.min.js:1259:24)
at parse (E:\Projects\Angular\PorticoWebApp\node_modules\terser-webpack-plugin\node_modules\terser\dist\bundle.min.js:1248:15)
at minify (E:\Projects\Angular\PorticoWebApp\node_modules\terser-webpack-plugin\node_modules\terser\dist\bundle.min.js:27665:42)
at minify (E:\Projects\Angular\PorticoWebApp\node_modules\terser-webpack-plugin\dist\minify.js:162:24)
at Object.transform (E:\Projects\Angular\PorticoWebApp\node_modules\terser-webpack-plugin\dist\minify.js:175:10)
at execFunction (E:\Projects\Angular\PorticoWebApp\node_modules\jest-worker\build\workers\processChild.js:145:17)