Dotnet core with Angular Template failed to publish with error in 0.js from UglifyJS

I am facing an issue while publishing the Dotnet core app with angular template with the


The command "node node_modules/webpack/bin/webpack.js" excited with code 2.

because of error in 0.js from UglifyJs

Unexpected character '`' at (0.js:1894,14) at the following code

which I think is from the dicom-parser component(the method readtag() is in the dicom-parser component) to render a dicom(.dcm files) images using angular_cornerstone element.

I tried updating the node version and changing the webconfig after google. Here is my package.json and webpack.config

Please help me in fixing this issue. Thank you in advance