react-native-reanimated-carousel
react-native-reanimated-carousel copied to clipboard
[4.0.0-alpha12] Metro error on Expo 51 / Web: Cannot access 'computedOffsetXValueWithAutoFillData' before initialization
Describe the bug
When starting up metro after migrating to Expo 51, carousel fails during initialization.
Screenshots
Metro error: Cannot access 'computedOffsetXValueWithAutoFillData' before initialization
5 | });
6 | exports.computedFillDataWithAutoFillData = computedFillDataWithAutoFillData;
> 7 | exports.computedOffsetXValueWithAutoFillData = computedOffsetXValueWithAutoFillData;
| ^
8 | exports.computedRealIndexWithAutoFillData = computedRealIndexWithAutoFillData;
9 | exports.convertToSharedIndex = convertToSharedIndex;
10 |
Call Stack
factory (node_modules/react-native-reanimated-carousel/lib/commonjs/utils/computed-with-auto-fill-data.js:7:48)
loadModuleImplementation (node_modules/metro-runtime/src/polyfills/require.js:273:5)
guardedLoadModule (node_modules/metro-runtime/src/polyfills/require.js:180:12)
require (node_modules/metro-runtime/src/polyfills/require.js:89:7)
factory (node_modules/react-native-reanimated-carousel/lib/commonjs/components/ItemRenderer.js:16:33)
loadModuleImplementation (node_modules/metro-runtime/src/polyfills/require.js:273:5)
guardedLoadModule (node_modules/metro-runtime/src/polyfills/require.js:180:12)
require (node_modules/metro-runtime/src/polyfills/require.js:89:7)
factory (node_modules/react-native-reanimated-carousel/lib/commonjs/components/Carousel.js:16:21)
loadModuleImplementation (node_modules/metro-runtime/src/polyfills/require.js:273:5)
Versions (please complete the following information):
- react: v18.2.0
- react-native: v0.74.1
- react-native-reanimated: v3.10.1
- react-native-reanimated-carousel: v4.0.0-alpha.12
- react-native-gesture-handler: v2.16.2
Additional context
Using metro to build web.