CesiumGS/obj2gltf

SyntaxError: Unexpected token '.'

yudeqang opened this issue · 1 comments

When I installed.run obj2gltf:

D:\AppData\Roaming\npm\node_modules\obj2gltf\node_modules\cesium\Build\CesiumUnminified\index.cjs:85065
const statistics2 = content?.tileset.metadataExtension?.statistics;
^

SyntaxError: Unexpected token '.'
at Module._compile (internal/modules/cjs/loader.js:891:18)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Module.require (internal/modules/cjs/loader.js:848:19)
at require (internal/modules/cjs/helpers.js:74:18)
at Object. (D:\AppData\Roaming\npm\node_modules\obj2gltf\node_modules\cesium\index.cjs:13:18)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)

What version of node are you using? obj2gltf may only work on Node 16+