B L Praveen
10/22/2023, 3:07 PMB L Praveen
10/22/2023, 3:07 PMB L Praveen
10/22/2023, 3:08 PMSlackbot
10/23/2023, 4:42 AMSlackbot
10/24/2023, 9:01 AMSlackbot
10/24/2023, 4:26 PMSlackbot
10/26/2023, 6:21 PMSlackbot
10/26/2023, 8:49 PMSlackbot
10/27/2023, 3:58 AMSlackbot
10/29/2023, 10:59 AMSlackbot
10/30/2023, 1:43 PMSlackbot
10/30/2023, 5:46 PMSlackbot
10/30/2023, 6:47 PMChristoph Pahmeyer
11/01/2023, 3:42 PMgeos-wasm
package that I maintain. The module is a pure ES6 package. The helper functions wouldnât be useful for everyone, so instead of bundling them with the main package my idea was to provide them under a submodule â geos-wasm/helpers
. I placed a package.json in the geos-wasm/helpers
folder with â`type": "module", "module": "./geos.helpers.esm.js"` alongside the bundled geos.helpers.esm.js
file.
However, if I try to import the helper module using import helpers from "geos-wasm/helpers"
I get the following âdirectory import unsupportedâ error
Directory import â/Users/pahmeyer/Documents/GitHub.nosync/geos-wasm-test/node_modules/geos-wasm/helpersâ is not supported resolving ES modules imported from /Users/pahmeyer/Documents/GitHub.nosync/geos-wasm-test/main.mjs
Did you mean to import geos-wasm/helpers/geos.helpers.esm.js?Is there any way that I can convince node.js to find the actual JS file without having to specify it upfront? Or do you have a better idea how I could solve my issue? Thanks for your help!
Slackbot
11/01/2023, 6:02 PMSlackbot
11/02/2023, 9:30 PMSlackbot
11/03/2023, 7:41 AMSlackbot
11/03/2023, 9:48 PMSlackbot
11/03/2023, 11:44 PMPablo Gomez-Echegaray
11/04/2023, 4:47 AMSlackbot
11/07/2023, 11:14 AMtan tan
11/07/2023, 9:53 PMSlackbot
11/07/2023, 9:53 PMSlackbot
11/08/2023, 5:42 AMSlackbot
11/08/2023, 9:17 AMSlackbot
11/08/2023, 2:43 PMSlackbot
12/04/2023, 8:35 AMSlackbot
12/04/2023, 3:26 PMSlackbot
12/05/2023, 6:19 PMSlackbot
12/06/2023, 5:46 AM