Git Product home page Git Product logo

vue-cli-plugin-cesium's Issues

CESIUM_BASE_URL不能设置

我在vue.config.js中的configureWebpack加入的DefinePlugin中的CESIUM_BASE_URL会被插件覆盖。
image
这里获取不到publicPath,我在vue.config.js中设置的publicPath是./ ,vue-cli会对./做处理
图里的opts.publicPath拿到的是空字符串。
CESIUM_BASE_URL为空字符串的时候会请求不到Cesium的资源。
我的服务器地址前面有路径,不是直接在域名后面。
image
像这样,Cesium就找不到依赖的文件

Cannot set property 'defaultAccessToken' of undefined

Cesium.Ion.defaultAccessToken = my token;
image

package:
"dependencies": {
"cesium": "1.20.0",
"core-js": "^3.6.5",
"vue": "^2.6.11",
"vue-cli-plugin-cesium": "^1.1.7",
"vue-router": "^3.2.0",
"vuex": "^3.4.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-plugin-eslint": "~4.5.0",
"@vue/cli-plugin-router": "~4.5.0",
"@vue/cli-plugin-vuex": "~4.5.0",
"@vue/cli-service": "~4.5.0", ...
}

老大,报错

1.方式二操作:
npm ERR! code ENOENT npm ERR! syscall rename npm ERR! path D:\workspace\KingoSpace\vue_cesium\vue-cli-plugin-cesium-demo\node_modules\[email protected]@accepts\node_modules\negotiator npm ERR! dest D:\workspace\KingoSpace\vue_cesium\vue-cli-plugin-cesium-demo\node_modules\[email protected]@accepts\node_modules\negotiator npm ERR! errno -4058 npm ERR! enoent ENOENT: no such file or directory, rename 'D:\workspace\KingoSpace\vue_cesium\vue-cli-plugin-cesium-demo\node_modules\[email protected]@accepts\node_modules\negotiator' -> 'D:\workspace\KingoSpace\vue_cesium\vue-cli-plugin-cesium-demo\node_modules\[email protected]@accepts\node_modules\negotiator' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent

Can not work on Win7&nodejs 12

I find it can't build the Cesium files like 'Assets'、'ThirdParty'... ,I copy the files to the public folder,it's ok.
ps:反正就是win7 nodejs12环境,win7升级不了node14. 运行这些文件404,我拿这些文件复制过去就可以用

patterns等一些有问题,是不是wenpack4、5不兼容

ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.
- options[0] has an unknown property 'to'. These properties are valid:
object { patterns, options? }
- options[1] has an unknown property 'to'. These properties are valid:
object { patterns, options? }
- options[2] has an unknown property 'to'. These properties are valid:
object { patterns, options? }
- options[3] has an unknown property 'to'. These properties are valid:
object { patterns, options? }
ValidationError: Invalid options object. Copy Plugin has been initialized using an options object that does not match the API schema.

  • options[0] has an unknown property 'to'. These properties are valid:
    object { patterns, options? }
  • options[1] has an unknown property 'to'. These properties are valid:
    object { patterns, options? }
  • options[2] has an unknown property 'to'. These properties are valid:
    object { patterns, options? }
  • options[3] has an unknown property 'to'. These properties are valid:
    object { patterns, options? }

不能加载tileset

代码 var tileset = new Cesium.Cesium3DTileset({
url: "Tileset/tileset.json",
});

tileset.readyPromise
.then(function (tileset) {
viewer.scene.primitives.add(tileset);
viewer.zoomTo(
tileset,
new Cesium.HeadingPitchRange(
0.0,
-0.5,
tileset.boundingSphere.radius * 2.0
)
);
})
.otherwise(function (error) {
console.log(error);
});

似乎是vue-cli-plugin-cesium

的问题, 没有保任何异常就是出不来。(其他vue离线加载都出来。)

This dependency was not found:

使用vue add安装完成后 npm run dev报错

This dependency was not found:

  • cesium/Widgets/widgets.css in ./src/main.js

To install it, you can run: npm install --save cesium/Widgets/widgets.css

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.