nandorojo / solito

🧍‍♂️ React Native + Next.js, unified.
https://solito.dev
MIT License
3.54k stars 181 forks source link

Getting next-transpile-modules error on fresh install #320

Closed justinireland closed 1 year ago

justinireland commented 1 year ago

I just bootstrapped a fresh tailwind monorepo and when I run yarn web I'm getting:

Error: next-transpile-modules - an unexpected error happened when trying to resolve "app". Are you sure the name of the module you are trying to transpile is correct, and it has a package.json with a "main" or an "exports" field?

Error: Can't resolve 'app\package.json'

nandorojo commented 1 year ago

Weird, does this still happen?

corysimmons commented 1 year ago

@justinireland What version of Next.js are you using? If 13, it might be because they bundled next-transpile-modules as part of core Next.js—maybe the explicit require('next-transpile-modules') is conflicting with their core implementation.