Skip to content

Conversation

@tjenkinson
Copy link

Hey,

We are getting ERR_UNSUPPORTED_DIR_IMPORT and this fixes it. Looks like the generated code is invalid when node is in esm mode.

Error [ERR_UNSUPPORTED_DIR_IMPORT]: Directory import '<snip>/node_modules/.pnpm/@pgsql+parser@1.2.0/node_modules/@pgsql/parser/wasm/v17/types' is not supported resolving ES modules imported from <snip>/node_modules/.pnpm/@pgsql+parser@1.2.0/node_modules/@pgsql/parser/wasm/v17/index.js

@pyramation
Copy link
Collaborator

I took a look at this a while back, sorry I didn't merge, but I saw .js syntax and direct references to index.js.

what is your environment? I've never run into this issue, and curious what may be happening.

Thanks again, and pardon the delay!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants