We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example in: this line of code I am importing the health route using the js extension.
The result I would want is this: (omit the .js extension when importing a local file)
.js
- import healthRoutes from './routes/health.js' + import healthRoutes from './routes/health'
I don't know how to do it yet.
The text was updated successfully, but these errors were encountered:
When reading the docs, it seems to be the normal behavior for ESM
This might feel a bit cumbersome at first, but TypeScript tooling like auto-imports and path completion will typically just do this for you.
See https://www.typescriptlang.org/docs/handbook/esm-node.html And nodejs/node#46006
Sorry, something went wrong.
No branches or pull requests
For example in: this line of code I am importing the health route using the js extension.
The result I would want is this: (omit the
.js
extension when importing a local file)I don't know how to do it yet.
The text was updated successfully, but these errors were encountered: