Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix ERR_UNSUPPORTED_DIR_IMPORT error#142

Open
tjenkinson wants to merge 1 commit into
constructive-io:main from
tjenkinson:fix-error-exporting-dir
Open

Fix ERR_UNSUPPORTED_DIR_IMPORT error #142
tjenkinson wants to merge 1 commit into
constructive-io:main from
tjenkinson:fix-error-exporting-dir

Conversation

@tjenkinson

@tjenkinson tjenkinson commented Oct 8, 2025

Copy link
Copy Markdown

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

angusjf and harryplusplus reacted with thumbs up emoji

Copy link
Copy Markdown
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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /