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

ERR_MODULE_NOT_FOUND when importing without .js since v4.14.0 #585

Closed
4 of 6 tasks
lukaswiklund opened this issue Jun 10, 2024 · 3 comments
Closed
4 of 6 tasks

ERR_MODULE_NOT_FOUND when importing without .js since v4.14.0 #585

lukaswiklund opened this issue Jun 10, 2024 · 3 comments
Labels

Comments

@lukaswiklund
Copy link

lukaswiklund commented Jun 10, 2024

Acknowledgements

  • I read the documentation and searched existing issues to avoid duplicates
  • I am reporting a confirmed bug (not seek debugging help)
  • I understand this is a collaborative project and relies on my contributions
  • I read and understood the Contribution guide

Minimal reproduction URL

https://stackblitz.com/edit/node-arpgm8

Problem & expected behavior (under 200 words)

Since v1.14.0 when using the TS config option "allowImportingTsExtensions: true" I cannot import the UTC extension of Dayjs without using the .js extension. This works when downgrading to v4.13. The Stackbliz editor gives an error either way but that's not relevant here.

Bugs are expected to be fixed by those affected by it

  • I'm interested in working on this issue

Compensating engineering work financially will speed up resolution

  • I'm willing to offer financial support
@lukaswiklund lukaswiklund added bug Something isn't working pending triage labels Jun 10, 2024
@matt-blanchette
Copy link

Seeing the same with import 'source-map-support/register';
Returning the same error starting in 4.14.0:

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '.../node_modules/source-map-support/register' imported from __.ts
Did you mean to import "source-map-support/register.js"?

@U-4-E-A

This comment has been minimized.

@privatenumber
Copy link
Owner

privatenumber commented Jun 10, 2024

🎉 This issue has been resolved in v4.15.2

If you rely on this project, please consider making a donation ❤️ 🙏

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants