Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] can't find the module #2

Open
yubei826 opened this issue Jun 29, 2024 · 1 comment
Open

[Bug] can't find the module #2

yubei826 opened this issue Jun 29, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@yubei826
Copy link

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

@yubei826 yubei826 changed the title [Bug] [Bug] can't find the module Jun 29, 2024
@bilaleren
Copy link
Owner

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);

@bilaleren bilaleren added the bug Something isn't working label Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants