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

Regression in 4.9.1 – Cannot find module (…) Did you mean to import "….js"? #542

Closed
5 of 6 tasks
typeofweb opened this issue May 5, 2024 · 2 comments
Closed
5 of 6 tasks
Labels
bug Something isn't working outdated released

Comments

@typeofweb
Copy link

typeofweb commented May 5, 2024

Acknowledgements

  • I read the documentation and searched existing issues to avoid duplicates
  • I understand this is a place to report a confirmed bug (not seek debugging help)
  • I understand this is a collaborative open source project, and relies on community contributions
  • I have read and understood the Contribution guide

Minimal reproduction URL

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

Version

v4.9.1

Node.js version

v20.12.2

Package manager

pnpm

Operating system

macOS

Problem & expected behavior (under 200 words)

node:internal/process/esm_loader:34
      internalBinding('errors').triggerUncaughtException(
                                ^
Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/Users/typeofweb/…/node_modules/next/cache' imported from /Users/typeofweb/…/src/lib/stripe/stripe.ts
Did you mean to import "next/cache.js"?
    at finalizeResolution (node:internal/modules/esm/resolve:265:11)
    at moduleResolve (node:internal/modules/esm/resolve:933:10)
    at defaultResolve (node:internal/modules/esm/resolve:1157:11)
    at nextResolve (node:internal/modules/esm/hooks:866:28)
    at S (file:///Users/typeofweb/…/node_modules/.pnpm/tsx@4.9.1/node_modules/tsx/dist/esm/index.mjs?1714890869622:2:2951)
    at nextResolve (node:internal/modules/esm/hooks:866:28)
    at Hooks.resolve (node:internal/modules/esm/hooks:304:30)
    at handleMessage (node:internal/modules/esm/worker:196:24)
    at Immediate.checkForMessages [as _onImmediate] (node:internal/modules/esm/worker:138:28)
    at process.processImmediate (node:internal/timers:478:21) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///Users/typeofweb/…/node_modules/next/cache'
}

Contributions

  • I'm interested in working on this issue
  • I'm willing to offer financial support
@privatenumber
Copy link
Owner

🎉 This issue has been resolved in v4.9.3

If you appreciate this project, please consider supporting this project by sponsoring ❤️ 🙏

@privatenumber
Copy link
Owner

privatenumber commented May 6, 2024

@typeofweb Thanks for offering financial support! Would love to have you as a sponsor 🙌

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working outdated released
Projects
None yet
Development

No branches or pull requests

2 participants