CesiumGS / obj2gltf

Convert OBJ assets to glTF
Apache License 2.0
1.71k stars 307 forks source link

npm run test fail on mac os x #129

Closed baddev89 closed 6 years ago

baddev89 commented 6 years ago

Same error when trying to call from command line.

obj2gltf/node_modules/cesium/Source/Core/buildModuleUrl.js:88 a = document.createElement('a'); ^

ReferenceError: document is not defined

likangning93 commented 6 years ago

Cesium 1.42 needs a quick bugfix as a Node package. If you need this up and running immediately, try removing node_modules/cesium and changine "cesium": "^1.39.0" in package.json to "cesium": "1.41.0".

likangning93 commented 6 years ago

@baddev89 Cesium 1.42.1 is now available on npm so wiping your node_modules/cesium and re-running npm install should fix get rid of the error. I'm going to go ahead and close this.