You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to JSTS devs
I have problem using jsts package in my nestjds server side project but I get error :
const geom_1 = require("jsts/org/locationtech/jts/geom"); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module D:\pantoNestPro\panto-api\node_modules\jsts\org\locationtech\jts\geom.js from D:\pantoNestPro\panto-api\dist\src\point\point.service.js not supported. Instead change the require of geom.js in D:\pantoNestPro\panto-api\dist\src\point\point.service.js to a dynamic import() which is available in all CommonJS modules. at Object.<anonymous> (D:\pantoNestPro\panto-api\dist\src\point\point.service.js:83:16) at Object.<anonymous> (D:\pantoNestPro\panto-api\dist\src\event\event.service.js:48:25) [5:45:38 PM] Found 0 errors. Watching for file changes.
D:\pantoNestPro\panto-api\dist\src\point\point.service.js:83 const geom_1 = require("jsts/org/locationtech/jts/geom"); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module D:\pantoNestPro\panto-api\node_modules\jsts\org\locationtech\jts\geom.js from D:\pantoNestPro\panto-api\dist\src\point\point.service.js not supported. I have use dynamic import but it doesnot work. I hope you can help me thanks in advance