3D load error using vue cli cesium configuration

**Hello, Im using cesium with vue-cli webpack but at the time I try to load a 3D model it brokes **

**Even I have used this two configurations **

**https://github.com/QingMings/qm-cesium/tree/dev/src/widget/navi **

https://github.com/QingMings/iez-cesium

**appears this warn at first **

./node_modules/cesium/Source/ThirdParty/draco_decoder.wasm

Module parse failed: Unexpected character ’ '(1:0)

You may need an appropriate loader to handle this file type.

(Source code omitted for this binary file)

@ ./node_modules/cesium/Source/ThirdParty ^./.*$

@ ./node_modules/cesium/Source/ThirdParty/xss.js

@ ./node_modules/cesium/Source/Core/Credit.js

@ ./node_modules/cesium/Source/Cesium.js

@ ./src/main.js

@ multi (webpack)-dev-server/client?http://localhost:8080 webpack/hot/dev-server ./src/main.js

I can load simples shapes but when i try to load a 3D model this message appears

RuntimeError {name: “RuntimeError”, message: “Failed to load model: [object Object]↵Unexpected token < in JSON at position 0”, stack: “Error↵ at new RuntimeError (webpack-internal://…e_modules/cesium/Source/ThirdParty/when.js:647:4)”}

hope somebody has any idea what I can do

See my answer in this previous thread.

1 Like