首页 > 解决方案 > ./node_modules/firebase/firestore/dist/index.esm.js 中的错误

问题描述

我正在处理一个有角度的项目。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'

那么错误的原因是什么。我无法理解发生了什么。该项目运行正常。

标签: angular

解决方案


也许您缺少某些东西,请在项目的根目录下运行 npm install 并重试。


推荐阅读