我正在处理一个有角度的项目。使用npm-start
命令启动项目时遇到错误。我将在下面显示错误。
ERROR in ./node_modules/firebase/firestore/dist/index.esm.js
Module not found: Error: Can't resolve '@firebase/firestore' in 'C:\Users\ruwan\Documents\projects\new project\Hair-4-U-hospital\Admin\Hair-4-U-Manufacture\node_modules\firebase\firestore\dist'
ERROR in ./node_modules/@firebase/polyfill/dist/index.esm.js
Module not found: Error: Can't resolve 'core-js/features/array/find' in 'C:\Users\ruwan\Documents\projects\new project\Hair-4-U-hospital\Admin\Hair-4-U-Manufacture\node_modules\@firebase\polyfill\dist'
ERROR in ./node_modules/@firebase/polyfill/dist/index.esm.js
Module not found: Error: Can't resolve 'core-js/features/array/find-index' in 'C:\Users\ruwan\Documents\projects\new project\Hair-4-U-hospital\Admin\Hair-4-U-Manufacture\node_modules\@firebase\polyfill\dist'
ERROR in ./node_modules/@firebase/polyfill/dist/index.esm.js
Module not found: Error: Can't resolve 'core-js/features/object/assign' in 'C:\Users\ruwan\Documents\projects\new project\Hair-4-U-hospital\Admin\Hair-4-U-Manufacture\node_modules\@firebase\polyfill\dist'
ERROR in ./node_modules/@firebase/polyfill/dist/index.esm.js
Module not found: Error: Can't resolve 'core-js/features/string/repeat' in 'C:\Users\ruwan\Documents\projects\new project\Hair-4-U-hospital\Admin\Hair-4-U-Manufacture\node_modules\@firebase\polyfill\dist'
ERROR in ./node_modules/@firebase/polyfill/dist/index.esm.js
Module not found: Error: Can't resolve 'core-js/features/string/starts-with' in 'C:\Users\ruwan\Documents\projects\new project\Hair-4-U-hospital\Admin\Hair-4-U-Manufacture\node_modules\@firebase\polyfill\dist'
ERROR in ./node_modules/@firebase/polyfill/dist/index.esm.js
Module not found: Error: Can't resolve 'core-js/features/symbol' in 'C:\Users\ruwan\Documents\projects\new project\Hair-4-U-hospital\Admin\Hair-4-U-Manufacture\node_modules\@firebase\polyfill\dist'
ERROR in ./node_modules/@firebase/polyfill/dist/index.esm.js
Module not found: Error: Can't resolve 'core-js/features/symbol/iterator' in 'C:\Users\ruwan\Documents\projects\new project\Hair-4-U-hospital\Admin\Hair-4-U-Manufacture\node_modules\@firebase\polyfill\dist'
那么错误的原因是什么。我不明白发生了什么事。该项目工作正常。
答案 0 :(得分:1)
也许您缺少某些内容,请在项目的根目录中运行npm install并重试。