Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run serve时候,出现无cesium,请大神指点! #7

Closed
loooon opened this issue May 8, 2020 · 3 comments
Closed

npm run serve时候,出现无cesium,请大神指点! #7

loooon opened this issue May 8, 2020 · 3 comments

Comments

@loooon
Copy link

loooon commented May 8, 2020

ERROR Failed to compile with 1 errors 2:47:18 PM

This dependency was not found:

  • Cesium in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/views/CesiumContainer.vue?vue&type=script&lang=js&

To install it, you can run: npm install --save Cesium

@wanghongrui
Copy link

import { Viewer } from 'Cesium'

改成

import { Viewer } from 'cesium'

@novgis
Copy link

novgis commented Nov 11, 2020

如果是引用本地修改的 Cesium 而不是 npm 安装的版本,怎么处理,请大神指点

@ShareQiu1994
Copy link
Owner

如果是引用本地修改的 Cesium 不是 npm 安装的版本,怎么处理,请大神指点

可以使用public目中html文件中引入Cesium.js Cesium当做一个全局变量

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants