ESM module resolution #807
Unanswered
marolbrich
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a problem with module resolution. The error I get is
[ERR_UNSUPPORTED_DIR_IMPORT]
.The problem is, that the ESM module resolution does not support directory imports. It expects
import {*} from 'json-joy/esm/json-crdt/nodes/index.js'
instead ofimport {*} from 'json-joy/esm/json-crdt/nodes'
.This problem runs through the entire library. Has anyone a simple solution?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions