ionic构建出现这样的错误:
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/array' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/date' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/function' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/map' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/math' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/number' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/object' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/parse-float' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/parse-int' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-jit-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/reflect' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/regexp' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/set' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/string' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/symbol' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/es2015-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es6/weak-map' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
[ng] ERROR in ./node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/jit-polyfills.js
[ng] Module not found: Error: Can't resolve 'core-js/es7/reflect' in 'D:\D\e-commerce\node_modules\@angular-devkit\build-angular\src\angular-cli-files\models'
在package.json文件中将core-js的版本由‘2.5.4’或者'3.0.0'改为'2.5.7'
yarn install