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

Paths bugs on Windows #7

Closed
oktaysenkan opened this issue Oct 20, 2021 · 2 comments
Closed

Paths bugs on Windows #7

oktaysenkan opened this issue Oct 20, 2021 · 2 comments

Comments

@oktaysenkan
Copy link

Android
image

Windows
image

I added code to metro.config.js

console.log(monorepoMetroTools.extraNodeModules);

it's returns this

image

'tackoverflow-desktop\packages\mobile\node_modules\react': 'E:\Develop\stackoverflow-desktop\packages\mobile\node_modules\tackoverflow-desktop\packages\mobile\node_modules\react',

Root folder's name is stackoverflow-desktop not tackoverflow-desktop

image

@oktaysenkan
Copy link
Author

I changed extraNodeModules like this and it's worked.

monorepoMetroTools.extraNodeModules = {
  'react': 'E:\\Develop\\stackoverflow-desktop\\packages\\windows\\node_modules\\react',
  "react-dom": 'E:\\Develop\\stackoverflow-desktop\\packages\\windows\\node_modules\\react-dom',
  'react-native': 'E:\\Develop\\stackoverflow-desktop\\packages\\windows\\node_modules\\react-native',
  "react-native-codegen": 'E:\\Develop\\stackoverflow-desktop\\packages\\windows\\node_modules\\react-native-codegen',
  "react-native-dev-menu":'E:\\Develop\\stackoverflow-desktop\\packages\\windows\\node_modules\\react-native-dev-menu',
  "react-native-macos":'E:\\Develop\\stackoverflow-desktop\\packages\\windows\\node_modules\\react-native-macos',
  "react-native-windows":'E:\\Develop\\stackoverflow-desktop\\packages\\windows\\node_modules\\react-native-windows',
}

image

@mmazzarolo
Copy link
Owner

Fixed by #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants