-
Notifications
You must be signed in to change notification settings - Fork 2
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
Error [ERR_UNSUPPORTED_DIR_IMPORT] when running nx run next:serve:development #4
Comments
I was able to fix the error by using CommonJS imports & exports and renaming next.config.mjs to next.config.js |
It's a Tamagui problem. I opened an issue tamagui/tamagui#2568. Great you found a solution not using ESM. |
I added your solution to the README |
Hi, not sure if this is related but after using CommonJS imports & exports, I'm now getting:
The page does compile and load, however I am worried it may affect Tamagui compilation. Do you have any suggestions on how to fix this, or any other solutions for getting ESM to work? Thanks :) |
Thanks for let me know. CommonJS because of I've not worked with NextJS building. Open to your PR 🙂 My TODOs for June-July:
|
On a clean install using Node v22.2.0 (Yarn Berry), I encountered the following Error [ERR_UNSUPPORTED_DIR_IMPORT] while resolving ES modules in /node_modules/@tamagui/next-plugin/dist/esm/withTamagui.mjs:
The text was updated successfully, but these errors were encountered: