Hi, great wrapper around PlaneGCS, something I was looking for a long time, thank you for putting this project together!
I am trying to use this npm module in my js lib I am packing with webpack as UMD module.
When I try to build with this this package installed and imported I do get an error about module resolution.
In particular it complains that:
ERROR in ./node_modules/@salusoft89/planegcs/dist/planegcs_dist/planegcs.js 9:174-203
Module not found: Error: Can't resolve './' in '/Users/rafal/Projects/LTBL/planegcs-js/node_modules/@salusoft89/planegcs/dist/planegcs_dist'
resolve './' in '/Users/rafal/Projects/LTBL/planegcs-js/node_modules/@salusoft89/planegcs/dist/planegcs_dist'
Parsed request is a directory
using description file: /Users/rafal/Projects/LTBL/planegcs-js/node_modules/@salusoft89/planegcs/package.json (relative path: ./dist/planegcs_dist)
using description file: /Users/rafal/Projects/LTBL/planegcs-js/node_modules/@salusoft89/planegcs/package.json (relative path: ./dist/planegcs_dist)
as directory
existing directory /Users/rafal/Projects/LTBL/planegcs-js/node_modules/@salusoft89/planegcs/dist/planegcs_dist
using description file: /Users/rafal/Projects/LTBL/planegcs-js/node_modules/@salusoft89/planegcs/package.json (relative path: ./dist/planegcs_dist)
using path: /Users/rafal/Projects/LTBL/planegcs-js/node_modules/@salusoft89/planegcs/dist/planegcs_dist/index
using description file: /Users/rafal/Projects/LTBL/planegcs-js/node_modules/@salusoft89/planegcs/package.json (relative path: ./dist/planegcs_dist/index)
no extension
/Users/rafal/Projects/LTBL/planegcs-js/node_modules/@salusoft89/planegcs/dist/planegcs_dist/index doesn't exist
.tsx
/Users/rafal/Projects/LTBL/planegcs-js/node_modules/@salusoft89/planegcs/dist/planegcs_dist/index.tsx doesn't exist
.ts
/Users/rafal/Projects/LTBL/planegcs-js/node_modules/@salusoft89/planegcs/dist/planegcs_dist/index.ts doesn't exist
.js
/Users/rafal/Projects/LTBL/planegcs-js/node_modules/@salusoft89/planegcs/dist/planegcs_dist/index.js doesn't exist
@ ./node_modules/@salusoft89/planegcs/dist/index.js 14:0-63 15:0-32 20:29-49
@ ./src/index.ts 37:0-72 43:45-65 47:38-48
ERROR in /Users/rafal/Projects/LTBL/planegcs-js/src/index.ts
1:49-71
[tsl] ERROR in /Users/rafal/Projects/LTBL/planegcs-js/src/index.ts(1,50)
TS2792: Cannot find module '@salusoft89/planegcs'. Did you mean to set the 'moduleResolution' option to 'nodenext', or to add aliases to the 'paths' option?
ts-loader-default_e3b0c44298fc1c14
Does it have to do with how target javascript version emscripten is confoigured for ES5/ES6 and new js modules vs commonJS ?
Any pointers on why this happens and potentially how to solve would be greatly appreciated!
the test project attached as zip
planegcs-js.zip
Hi, great wrapper around PlaneGCS, something I was looking for a long time, thank you for putting this project together!
I am trying to use this npm module in my js lib I am packing with webpack as UMD module.
When I try to build with this this package installed and imported I do get an error about module resolution.
In particular it complains that:
Does it have to do with how target javascript version emscripten is confoigured for ES5/ES6 and new js modules vs commonJS ?
Any pointers on why this happens and potentially how to solve would be greatly appreciated!
the test project attached as zip
planegcs-js.zip