我是webpack的新手,我正在尝试在Vuetify中使用Cesium,但由于依赖性问题我无法使用它:
ERROR Failed to compile with 1 errors 15:16:46
This dependency was not found:
* cesium/Source in ./src/main.js
To install it, you can run: npm install --save cesium/Source
我已经尝试了没有结果的命令 npm install --save cesium/Source
.
Here are the steps I took:
-
npm install -g vue-cli
-
vue init vuetifyjs / webpack my-project
-
cd my-project
-
npm安装
-
npm install --save cesium
-
将
import Cesium from 'cesium';
行添加到./src/main.js
-
npm run dev #ERROR
有人有想法吗?