You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i am trying to get your library to run in nodejs, but i am stuck importing it correctly. is the problem on my side or is something broken with the library? this is the errormessage:
Error: require() of ES Module C:\Users\user\Documents\citygmlToGltf\node_modules\citygml-to-3dtiles\src\Converter.mjs not supported.
Instead change the require of C:\Users\user\Documents\citygmlToGltf\node_modules\citygml-to-3dtiles\src\Converter.mjs to a dynamic import() which is available in all CommonJS modules.
when having this in my app.ts:
import Converter from "citygml-to-3dtiles";
let converter = new Converter();
(i also had to add a citygml-to-3dtiles.d.ts in node-module/@types)
and added "type" : "module", to the package.json of the module... with no luck
any idea what i am doing wrong here?
Thanks a lot!
The text was updated successfully, but these errors were encountered:
I'm not too knowledgeable about JS modules/import. But it looks to me like the module/file from which you import citygml-to-3dtiles from doesn't support the type of import you're using (the one from this repo's readme). I'd try the dynamic import instead.
Hi,
i am trying to get your library to run in nodejs, but i am stuck importing it correctly. is the problem on my side or is something broken with the library? this is the errormessage:
when having this in my app.ts:
(i also had to add a citygml-to-3dtiles.d.ts in node-module/@types)
and added
"type" : "module",
to the package.json of the module... with no luckany idea what i am doing wrong here?
Thanks a lot!
The text was updated successfully, but these errors were encountered: