-
-
Notifications
You must be signed in to change notification settings - Fork 511
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
Vite web error on initializing Error in Tamagui parse, skipping package.json not found in path Error: package.json not found in path
in a Nx monorepo
#2569
Comments
Error in Tamagui parse, skipping package.json not found in path Error: package.json not found in path
Error in Tamagui parse, skipping package.json not found in path Error: package.json not found in path
in a Nx monorepo
inside |
Some additional context for non-NX people. Depending on your setup, neither node_modules or package.json exist close to the nextjs/expo project. Both node_modules and package.json might be in the root, where the projects would be in /apps/next-js-project and /apps/expo-project/ respectivly. Hope this helps any future work on this. (I have the same issue btw). |
Yea.. i think community deserve a better way to comprehend the setup in Monorepos and in NX especifically. |
@itsmelion I'm creating a template that works https://github.com/guillempuche/nx-expo-next-tamagui, except for ViteJS web. It still needs the Expo EAS build scripts to work with Yarn 4 (I opened an issue at nrwl/nx#22631, you can comment it to increase the priority 😉). |
Actually i just put a "empty" package.json there and were all good. |
Ohh fuck, yeah!!! Thanks Christhopher 🤜 I won't close the issue, because Tamagui repo should consider no package.json in Nx, because Nx doesn't create them by default. |
@guillempuche thank you for opening this issue and your starter repo helps me a lot 🙏 |
@CoSNaYe very much appreciated! |
Closing lmk if needs attention still |
Current Behavior
Error
Error in Tamagui parse, skipping package.json not found in path Error: package.json not found in path
, something with@tamagui/static
package, specifically here https://github.com/tamagui/tamagui/blob/master/packages/static/src/extractor/extractHelpers.ts.Nx can work without package.json in the local packages and apps (except for the Expo app)
The Expo app works well.
My Vite config in
apps/web-react/vite.config.ts
This is the output of the terminal:
And my browser console:
Expected Behavior
Run the Vite React web.
Tamagui Version
Platform (Web, iOS, Android)
Reproduction
System Info
The text was updated successfully, but these errors were encountered: