3D load error using vue cli cesium configuration

92 views
Skip to first unread message

Mayra Olivo

unread,
Jun 10, 2018, 10:56:58 PM6/10/18
to cesium-dev
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 

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 

Gabby Getz

unread,
Jun 12, 2018, 9:35:37 AM6/12/18
to cesium-dev
See my answer in this previous thread.
Reply all
Reply to author
Forward
0 new messages