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

Does not work with latest versions of react-native gesture handler (>v2.3.2) #55

Closed LunatiqueCoder closed 2 years ago

LunatiqueCoder commented 2 years ago

Describe the bug

Any version above 2.3.2 will get an error of webpack@5 here on this line of code: https://github.com/software-mansion/react-native-gesture-handler/blob/2.4.2/src/utils.ts#L1 I believe this would be the solution: https://stackoverflow.com/a/70333147/14056591

To Reproduce

npx react-native init MyAppName --template @criszz77/luna
yarn add react-native-gesture-handler
yarn web

Compiled with problems:X ERROR in ./node_modules/react-native-gesture-handler/lib/module/utils.js 41:31-46 Should not import the named export 'version'.'split' (imported as 'rnVersion') from default-exporting module (only default export is available soon)

Expected behavior Expected react-native-gesture-handler to work on the web with latest versions.

LunatiqueCoder commented 2 years ago

Will be fixed by https://github.com/software-mansion/react-native-gesture-handler/pull/2036