LunatiqueCoder / luna

Luna - a React Native + Next.js template. Built with TypeScript :heart:
https://luna-gamma.vercel.app/
MIT License
264 stars 17 forks source link

Template uses tamague which doesn't work without expo-modules-core #75

Closed krutilins closed 1 year ago

krutilins commented 1 year ago

Describe the bug

Error: Unable to resolve module expo-modules-core from /Users/XXX/Projects/MyAppName/node_modules/burnt/build/BurntModule.ios.js: expo-modules-core could not be found within the project or in these directories:

To Reproduce Steps to reproduce the behavior:

  1. npx react-native init MyAppName --template @criszz77/luna
  2. cd MyAppName
  3. cd ios:pods
  4. yarn ios

Expected behavior

While I research an issue, I found that discussion, which says that there a library specifically for pure react native.

What do you think about library? If you are not okay with that, than probably it would be better to install required expo-modules-core

Desktop:

Smartphone:

LunatiqueCoder commented 1 year ago

Hmm this is probably a breaking change that Tamagui introduced in newer versions when they introduced the Toast component. I’ll take a look ASAP. (Probably this weekend)

Thank you for opening the issue!

LunatiqueCoder commented 1 year ago

@krutilins You can also try to remove circumflex/caret from the tamagui packages like this:

image

Then run rm -rf node_modules ios/Pods && yarn && cd ios && pod install && cd ..

Perhaps this will help. Or yes, you can add expo unimodules if you want to use the latest version of Tamagui with the Toasts until this gets fixed. Thank you for your patience! Sorry if this is annoying.

LunatiqueCoder commented 1 year ago

Should be fixed now.