angular - ./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'
那么错误的原因是什么。我无法理解发生了什么。该项目运行正常。
解决方案
也许您缺少某些东西,请在项目的根目录下运行 npm install 并重试。
推荐阅读
- mysql - Oracle Golden Gate 同步 oracle - mysql
- firebase - 即使没有值,如何在 Firebase 数据库中创建子项
- excel - VBA-自动将图表和表格复制到ppt
- java - 如果 observable 为空或 null,如何停止处理
- jquery - 将 jQuery 气泡效果代码转换为主干
- slack - 在重复提醒松弛中显示相应的日期
- node.js - 当我在循环中读取大型 JSON 文件时,NodeJS 耗尽了堆空间
- angular - 使用 `ViewChild` - 方法没有调用子方法
- amazon-web-services - 来自 create-image 的 AMI 不维护用户数据修改,但控制台启动是
- jquery - AngularJS 中的动画