Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Node 20.x: import.meta.resolve is not a promise anymore #200

Closed
koshic opened this issue May 4, 2023 · 1 comment · Fixed by #201
Closed

Node 20.x: import.meta.resolve is not a promise anymore #200

koshic opened this issue May 4, 2023 · 1 comment · Fixed by #201

Comments

@koshic
Copy link
Collaborator

koshic commented May 4, 2023

https://github.com/nodejs/node/blob/main/doc/changelogs/CHANGELOG_V20.md#2023-04-18-version-2000-current-rafaelgss
nodejs/node#44710

As a result,

? await import.meta.resolve(id, asFileURL(parent)).catch(() => null)
fails with 'TypeError: (intermediate value).resolve(...).catch is not a function'.

@iambumblehead
Copy link
Owner

I might have time to make a branch and resolve later tonight or tomorrow. Thanks for bumping the node --loader issue thread I hope they will resolve that

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 a pull request may close this issue.

2 participants