Error when importing createRequire in API Route #118
-
I'm encountering an error when trying to use the Error Message
https://github.com/jinwatanabe/tech-article-not-working Key Points
Questions
Any insights on resolving this module system conflict would be greatly appreciated. Let me know if you need any additional information about the setup. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi @jinwatanabe, this is a module resolution issue in the development server. Convex is just trying to import |
Beta Was this translation helpful? Give feedback.
Hi @jinwatanabe,
this is a module resolution issue in the development server. Convex is just trying to import
createRequire' from
module, not from
node:module`. The fix is already in a PR and it'll very soon be available in the latest version of react-server. You can upgrade to the latest version as soon as you see a new GitHub release in this repo.