模块解析失败:意外字符''(1:3)

时间:2020-09-19 12:28:43

标签: angular

我是Angular的新手,我的代码有一个我不理解的错误。我正在使用anguar(版本8)构建电子商务站点。当我执行“ ng build”以生成“ dist”文件夹时,该项目几乎完成。而且效果很好。但是,在项目未完成之后,我进行了一些修改以获取最终版本,但是当我执行“ ng build”时,现在它不再起作用。会产生错误:

ERROR in ./node_modules/core-js/modules/es.regexp.exec.js 1:3
Module parse failed: Unexpected character '' (1:3)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
(Source code omitted for this binary file)
 @ ./node_modules/core-js/es/regexp/index.js 3:0-39
 @ ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es5-polyfills.js
 @ multi ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es5-polyfills.js zone.js/dist/zone-legacy ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/jit-polyfills.js ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es5-jit-polyfills.js ./src/polyfills.ts

我不明白这是干什么的。有人可以帮帮我吗?谢谢!!

0 个答案:

没有答案