bilaleren / mui-tabs

Material UI tabs for React and React Native projects.
https://bilaleren.github.io/mui-tabs/
MIT License
3 stars 1 forks source link

[Bug] can't find the module #2

Open yubei826 opened 3 weeks ago

yubei826 commented 3 weeks ago
image

I installed the mui-tabs node module, but it still says it can't find the module, I'm confused

These modules are installed clsx、@shopify/flash-list、react-native-pager-view、react-native-reanimated

bilaleren commented 2 weeks ago

hi @yubei826 can you try again by adding the following codes to the metro.config.js file?

const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');

/**
 * Metro configuration
 * https://facebook.github.io/metro/docs/configuration
 *
 * @type {import('metro-config').MetroConfig}
 */
const config = {
  // ...config
  resolver: {
    // ...config.resolver
    unstable_conditionNames: ['react-native', 'browser', 'require'],
    unstable_enablePackageExports: true,
  }
};

module.exports = mergeConfig(getDefaultConfig(__dirname), config);