Closed JRDspace closed 1 year ago
Duplicate #405.
Fix is to set resolvers in metro config:
First create metro config file if you don't have it yet.
npx expo customize metro.config.js
Then add sbmodern to the start of the resolver.resolverMainFields
list.
// metro.config.js
const { getDefaultConfig } = require('expo/metro-config');
--module.exports = getDefaultConfig(__dirname);
++const defaultConfig = getDefaultConfig(__dirname);
++defaultConfig.resolver.resolverMainFields.unshift('sbmodern');
++module.exports = defaultConfig;
Closing since this is a duplicate, if you have reason to believe its a separate issue let me know and i can reopen
Describe the bug
I have incorporated Storybook into my existing React Native Expo project. However, upon launching Storybook, it is throwing the below error
Here is how my
App.tsx
looks likepackage.json
Could you please assist me with this issue? Let me know if there is any additional information that I should provide. Thank you.
I attempted to resolve the issue by modifying the react-native package version and experimenting with different versions of storybook, as advised by several users on the GitHub issues page, but nothing worked.