Module not found: Error: Can't resolve 'BMap' in 'D:\Webgis SS\code\client\webgis\src' ERROR in ./src/App.vue?vue&type=script&lang=js& (./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/App.vue?vue&type=script&lang=js&) 1:0-24 Module not found: Error: Can't resolve 'BMap' in 'D:\Webgis SS\code\client\webgis\src' @ ./src/App.vue?vue&type=script&lang=js& 1:0-191 1:207-210 1:212-400 1:212-400 @ ./src/App.vue 2:0-55 3:0-50 3:0-50 9:2-8 @ ./src/main.js 4:0-28 12:17-20
时间: 2024-03-09 12:47:10 浏览: 78
根据你的错误提示,看起来是你的项目中缺少了BMap模块,导致找不到该模块而报错。你需要安装或者引入BMap模块,来解决这个问题。具体方法如下:
1. 如果是使用npm进行项目管理,可以尝试使用以下命令安装BMap模块:
```
npm install bmap-js
```
2. 如果已经安装了BMap模块,但是仍然出现该错误,可以尝试检查引入BMap模块的路径是否正确。如果路径有误,也会导致找不到该模块而报错。
希望能帮到你!
相关问题
ERROR in ./src/App.js 5:0-74 Module not found: Error: Can't resolve 'react-router-dom' in 'C:\Users\烟火阑珊倚人间\try1\src' ERROR in ./src/App.js 6:0-30 Module not found: Error: Can't resolve 'antd' in 'C:\Users\烟火阑珊倚人间\try1\src' ERROR in ./src/index.js 6:0-39 Module not found: Error: Can't resolve 'react-redux' in 'C:\Users\烟火阑珊倚人间\try1\src' ERROR in ./src/index.js 9:0-28 Module not found: Error: Can't resolve 'antd/dist/antd.css' in 'C:\Users\烟火阑珊倚人间\try1\src' ERROR in ./src/pages/ItemsPage.js 6:0-38 Module not found: Error: Can't resolve 'react-redux' in 'C:\Users\烟火阑珊倚人间\try1\src\pages' ERROR in ./src/pages/ItemsPage.js 7:0-42 Module not found: Error: Can't resolve '../redux/api' in 'C:\Users\烟火阑珊倚人间\try1\src\pages' ERROR in ./src/redux/store.js 3:0-53 Module not found: Error: Can't resolve 'redux' in 'C:\Users\烟火阑珊倚人间\try1\src\redux' ERROR in ./src/redux/store.js 4:0-42 Module not found: Error: Can't resolve 'redux-thunk' in 'C:\Users\烟火阑珊倚人间\try1\src\redux'
These errors indicate that some modules are missing in your project. It seems like you need to install the required dependencies.
To resolve these errors, you can run the following command in the root directory of your project:
```
npm install react-router-dom antd react-redux redux redux-thunk
```
This command will install the necessary packages (`react-router-dom`, `antd`, `react-redux`, `redux`, `redux-thunk`).
After the installation is complete, try running your project again. The missing module errors should be resolved.
If you have any further questions, feel free to ask!
Failed to compile with 2 errors 上午10:56:43 error in ./src/router/index.js Module not found: Error: Can't resolve '@/views/product-list' in 'D:\whvue\6.5caigou\src\router' error in ./src/router/index.js Module not found: Error: Can't resolve '@/views/product-category' in 'D:\whvue\6.5caigou\src\router' ERROR in ./src/router/index.js 33:23-53 Module not found: Error: Can't resolve '@/views/product-list' in 'D:\whvue\6.5caigou\src\router' @ ./src/main.js 3:0-30 77:2-8 ERROR in ./src/router/index.js 40:23-57 Module not found: Error: Can't resolve '@/views/product-category' in 'D:\whvue\6.5caigou\src\router' @ ./src/main.js 3:0-30 77:2-8 webpack compiled with 2 errors
这个错误提示是在编译 Vue.js 项目时出现的,提示找不到两个模块:`@/views/product-list` 和 `@/views/product-category`。这可能是因为你的代码中使用了这两个模块,但是实际上并没有定义或者没有正确导入。
你可以检查一下这两个模块是否存在,是否正确导入。你可以在 `src/router/index.js` 文件中找到使用这两个模块的位置,检查是否写错了路径或者没有正确导入。如果确认这两个模块确实不存在,你需要创建它们或者导入正确的路径。
阅读全文