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

Upgrade moduleResolution from node to node16 or nodenext in tsconfig #154

Open
caleblloyd opened this issue Feb 18, 2025 · 0 comments
Open
Labels
enhancement New feature or request

Comments

@caleblloyd
Copy link

The tsconfig.json currently uses moduleResolution: node

"moduleResolution": "node",

This should no longer be used in TypeScript:

It reflects the CommonJS module resolution algorithm as it existed in Node.js versions earlier than v12. It should no longer be used.

I think this is causing errors when importing as an NPM module from Deno, because imports should specify extensions, yet they do not with this module resolution

And the package.json specifies that this is an esmodule:

Consider moving it to node16 or nodenext

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant