cesium_dev_kit icon indicating copy to clipboard operation
cesium_dev_kit copied to clipboard

运行项目报这个错误是为啥呢?

Open giserman001 opened this issue 1 year ago • 5 comments

image

giserman001 avatar Apr 07 '24 07:04 giserman001

DeveloperError {name: 'DeveloperError', message: 'Expected options.tileWidth to be typeof number, actual typeof was undefined', stack: 'Error\n at new DeveloperError (http://172.16.50.…dules/.vite/chunk-JLZ76TLO.js?v=cbcc640c:1597:17)'} message : "Expected options.tileWidth to be typeof number, actual typeof was undefined" name : "DeveloperError" stack : "Error\n at new DeveloperError (http://172.16.50.13:9527/node_modules/.vite/cesium.js?v=cbcc640c:5961:11)\n at Check.typeOf.number (http://172.16.50.13:9527/node_modules/.vite/cesium.js?v=cbcc640c:6010:11)\n at new SingleTileImageryProvider (http://172.16.50.13:9527/node_modules/.vite/cesium.js?v=cbcc640c:138966:24)\n at Controller.init (http://172.16.50.13:9527/src/utils/cesiumPluginsExtends/initConf.js:20:33)\n at new initCesium (http://172.16.50.13:9527/src/utils/cesiumPluginsExtends/indexOld.js:67:27)\n at Proxy.initMap (http://172.16.50.13:9527/src/views/example/czm/index.vue?t=1712475092343:53:59)\n at Proxy.mounted (http://172.16.50.13:9527/src/views/example/czm/index.vue?t=1712475092343:7:12)\n at http://172.16.50.13:9527/node_modules/.vite/chunk-JLZ76TLO.js?v=cbcc640c:7056:154\n at callWithErrorHandling (http://172.16.50.13:9527/node_modules/.vite/chunk-JLZ76TLO.js?v=cbcc640c:1589:18)\n at callWithAsyncErrorHandling (http://172.16.50.13:9527/node_modules/.vite/chunk-JLZ76TLO.js?v=cbcc640c:1597:17)" [[Prototype]] : Error

giserman001 avatar Apr 07 '24 07:04 giserman001

DeveloperError {name: 'DeveloperError', message: 'Expected options.tileWidth to be typeof number, actual typeof was undefined', stack: 'Error\n at new DeveloperError (http://172.16.50.…dules/.vite/chunk-JLZ76TLO.js?v=cbcc640c:1597:17)'}'%7D) message : "Expected options.tileWidth to be typeof number, actual typeof was undefined" name : "DeveloperError" stack : "Error\n at new DeveloperError (http://172.16.50.13:9527/node_modules/.vite/cesium.js?v=cbcc640c:5961:11)\n%5Cn) at Check.typeOf.number (http://172.16.50.13:9527/node_modules/.vite/cesium.js?v=cbcc640c:6010:11)\n%5Cn) at new SingleTileImageryProvider (http://172.16.50.13:9527/node_modules/.vite/cesium.js?v=cbcc640c:138966:24)\n%5Cn) at Controller.init (http://172.16.50.13:9527/src/utils/cesiumPluginsExtends/initConf.js:20:33)\n%5Cn) at new initCesium (http://172.16.50.13:9527/src/utils/cesiumPluginsExtends/indexOld.js:67:27)\n%5Cn) at Proxy.initMap (http://172.16.50.13:9527/src/views/example/czm/index.vue?t=1712475092343:53:59)\n%5Cn) at Proxy.mounted (http://172.16.50.13:9527/src/views/example/czm/index.vue?t=1712475092343:7:12)\n%5Cn) at http://172.16.50.13:9527/node_modules/.vite/chunk-JLZ76TLO.js?v=cbcc640c:7056:154\n at callWithErrorHandling (http://172.16.50.13:9527/node_modules/.vite/chunk-JLZ76TLO.js?v=cbcc640c:1589:18)\n%5Cn) at callWithAsyncErrorHandling (http://172.16.50.13:9527/node_modules/.vite/chunk-JLZ76TLO.js?v=cbcc640c:1597:17)" [[Prototype]] : Error

我这边测试尚未发现这个异常,你是直接 git clone https://github.com/dengxiaoning/cesium_dev_kit.git 后运行的吗?

dengxiaoning avatar Apr 17 '24 05:04 dengxiaoning

image

我的运行起来也是这个错误,菜单没显示出来!node版本从8切换到20都不好使!克隆、直接下载下来也是一样的效果!

maxiaoqu avatar Apr 23 '24 03:04 maxiaoqu

image

maxiaoqu avatar Apr 23 '24 03:04 maxiaoqu

image

node的版本:14.16.1,Yarn版本:1.22.10 时可以运行起来,而且正常使用!

maxiaoqu avatar Apr 23 '24 04:04 maxiaoqu