software-mansion / react-native-ide

VSCode extension that turns your editor into a fully fledged IDE for React Native and Expo.
https://ide.swmansion.com
Other
845 stars 28 forks source link

Cannot run project #514

Closed hf-yevhen closed 1 day ago

hf-yevhen commented 3 weeks ago

*Description Cannot run project in React Native IDE - diagnostics cannot find Node Modules. In my project I'm using monorepo (yarn workspaces)

Screenshot 2024-08-23 at 13 00 57

Environment

node: 20.12.2 yarn: 1.22.22

dpecha777 commented 3 weeks ago

i have the same issue

filip131311 commented 3 weeks ago

Hello, thank you for your feedback, would you mind sharing the logs of React Native IDE? To find them you can go to the output section of your vscode and choose "React Native IDE" from the list.

Screenshot 2024-08-23 at 14 32 10
dpecha777 commented 3 weeks ago

Sure there it is :)

2024-08-23 14:37:02.091 [info] Setup dependency checker listeners.
2024-08-23 14:37:02.091 [info] Installing Node Modules
2024-08-23 14:37:02.091 [info] Launching devtools
2024-08-23 14:37:02.091 [info] Launching metro
2024-08-23 14:37:02.102 [info] Devtools started on port 61723
2024-08-23 14:37:02.202 [info] Received checkNodejsInstalled command.
2024-08-23 14:37:02.202 [info] Received checkAndroidEmulatorInstalled command.
2024-08-23 14:37:02.202 [info] Android Emulator installed: true
2024-08-23 14:37:02.203 [info] Received checkXcodeInstalled command.
2024-08-23 14:37:02.204 [info] Received checkCocoaPodsInstalled command.
2024-08-23 14:37:02.205 [info] Received checkNodeModulesInstalled command.
2024-08-23 14:37:02.206 [info] Received checkReactNativeInstalled command.
2024-08-23 14:37:02.206 [info] Check react-native module version. Version found: 0.74.5. Minimum version: 0.71.0
2024-08-23 14:37:02.206 [info] Minimum React Native version installed: true
2024-08-23 14:37:02.207 [info] Received checkExpoInstalled command.
2024-08-23 14:37:02.207 [info] Check expo module version. Version found: 51.0.26. Minimum version: 49.0.0
2024-08-23 14:37:02.207 [info] Minimum Expo version installed: true
2024-08-23 14:37:02.207 [info] Received checkPodsInstalled command.
2024-08-23 14:37:02.207 [info] Project pods installed: false
2024-08-23 14:37:02.223 [info] Nodejs installed: true
2024-08-23 14:37:02.400 [info] Selected device is ready
2024-08-23 14:37:02.676 [info] Xcode Command Line Tools installed: true
2024-08-23 14:37:02.828 [info] CocoaPods installed: true
2024-08-23 14:37:03.698 [info] Node Modules installed: false
2024-08-23 14:37:03.699 [info] Node Modules installed: false
2024-08-23 14:37:04.349 [info] Node Modules installed
2024-08-23 14:37:04.513 [info] Metro Starting project at /Users/dominik/Work/EDGY/EdgyTasks
2024-08-23 14:37:04.513 [info] Metro env: load .env
2024-08-23 14:37:04.513 [info] Metro env: export EXPO_PUBLIC_EDGYTASKS_URL EXPO_PUBLIC_EDGYTASKS_AUTH_API_KEY
2024-08-23 14:37:04.617 [info] Metro Using src/app as the root directory for Expo Router.
2024-08-23 14:37:04.975 [info] Metro {"hasReducedPerformance":false,"port":0,"type":"initialize_started"}
2024-08-23 14:37:04.975 [info] Metro {"type":"dep_graph_loading","hasReducedPerformance":false}
2024-08-23 14:37:05.003 [info] Metro {"type":"RNIDE_initialize_done","port":61745}
2024-08-23 14:37:05.003 [info] Metro started on port 61745
2024-08-23 14:37:05.003 [info] Metro & devtools ready
2024-08-23 14:37:05.125 [info] Device already booted
2024-08-23 14:37:05.586 [info] Metro {"type":"dep_graph_loaded"}
2024-08-23 14:37:05.586 [info] Metro {"type":"transformer_load_started"}
2024-08-23 14:37:05.586 [info] Metro {"type":"transformer_load_done"}
2024-08-23 14:37:05.586 [info] Metro {"type":"initialize_done","port":0}
2024-08-23 14:37:05.586 [info] Metro Waiting on http://localhost:8081
2024-08-23 14:37:05.586 [info] Metro Logs for your project will appear below.
2024-08-23 14:37:05.586 [info] Metro The following packages should be updated for best compatibility with the installed expo version:
2024-08-23 14:37:05.586 [info] Metro   expo@51.0.26 - expected version: ~51.0.28
2024-08-23 14:37:05.586 [info] Metro   expo-router@3.5.21 - expected version: ~3.5.23
2024-08-23 14:37:05.586 [info] Metro   jest-expo@51.0.3 - expected version: ~51.0.4
2024-08-23 14:37:05.586 [info] Metro Your project may not work correctly until you install the expected versions of the packages.
2024-08-23 14:37:07.132 [info] Project pods installed: false
2024-08-23 14:37:07.134 [error] Command pod install execution resulted in an error: A system error occurred (Command failed with ENOENT: pod install
spawn pod ENOENT)
2024-08-23 14:37:07.135 [error] Pods not installed A system error occurred (Command failed with ENOENT: pod install
spawn pod ENOENT)
2024-08-23 14:37:07.140 [error] Couldn't start device session Could not find Xcode project files in "/Users/dominik/Work/EDGY/EdgyTasks/ios" folder
2024-08-23 14:37:07.140 [error] Unhandled promise rejection Could not find Xcode project files in "/Users/dominik/Work/EDGY/EdgyTasks/ios" folder
2024-08-23 14:37:34.614 [info] Selected device is ready
2024-08-23 14:37:34.614 [info] Metro & devtools ready
2024-08-23 14:37:38.291 [info] Project pods installed: false
2024-08-23 14:37:38.302 [error] Command pod install execution resulted in an error: A system error occurred (Command failed with ENOENT: pod install
spawn pod ENOENT)
2024-08-23 14:37:38.302 [error] Pods not installed A system error occurred (Command failed with ENOENT: pod install
spawn pod ENOENT)
2024-08-23 14:37:38.304 [error] Couldn't start device session Could not find Xcode project files in "/Users/dominik/Work/EDGY/EdgyTasks/ios" folder
2024-08-23 14:37:38.304 [error] Unhandled promise rejection Could not find Xcode project files in "/Users/dominik/Work/EDGY/EdgyTasks/ios" folder
hf-yevhen commented 3 weeks ago

This is mine:

2024-08-23 14:41:31.833 [info] Setup dependency checker listeners. 2024-08-23 14:41:31.833 [info] Installing Node Modules 2024-08-23 14:41:31.833 [info] Launching devtools 2024-08-23 14:41:31.833 [info] Launching metro 2024-08-23 14:41:31.835 [info] Devtools started on port 65330 2024-08-23 14:41:31.851 [info] Selected device is ready 2024-08-23 14:41:31.971 [info] Received checkNodejsInstalled command. 2024-08-23 14:41:31.972 [info] Received checkAndroidEmulatorInstalled command. 2024-08-23 14:41:31.972 [info] Android Emulator installed: true 2024-08-23 14:41:31.973 [info] Received checkXcodeInstalled command. 2024-08-23 14:41:31.975 [info] Received checkCocoaPodsInstalled command. 2024-08-23 14:41:31.975 [info] Received checkNodeModulesInstalled command. 2024-08-23 14:41:31.975 [info] Received checkReactNativeInstalled command. 2024-08-23 14:41:31.975 [info] Check react-native module version. Version found: 0.74.5. Minimum version: 0.71.0 2024-08-23 14:41:31.975 [info] Minimum React Native version installed: true 2024-08-23 14:41:31.975 [info] Received checkExpoInstalled command. 2024-08-23 14:41:31.975 [info] Check expo module version. Version found: 51.0.28. Minimum version: 49.0.0 2024-08-23 14:41:31.975 [info] Minimum Expo version installed: true 2024-08-23 14:41:31.976 [info] Received checkPodsInstalled command. 2024-08-23 14:41:31.976 [info] Project pods installed: false 2024-08-23 14:41:31.985 [info] Nodejs installed: true 2024-08-23 14:41:32.144 [info] Xcode Command Line Tools installed: true 2024-08-23 14:41:32.364 [info] CocoaPods installed: true 2024-08-23 14:41:33.175 [info] Node Modules installed: false 2024-08-23 14:41:33.271 [info] Node Modules installed: false 2024-08-23 14:41:35.896 [error] Couldn't start device session Command failed with exit code 1: npm install npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: mobileapp2@1.0.0 npm error Found: react@18.3.1 npm error node_modules/react npm error react@"18.3.1" from mobileapp2@1.0.0 npm error apps/mobileapp2 npm error mobileapp2@1.0.0 npm error node_modules/mobileapp2 npm error workspace apps/mobileapp2 from the root project npm error peer react@"" from react-native-gesture-handler@2.18.1 npm error node_modules/react-native-gesture-handler npm error react-native-gesture-handler@"^2.18.1" from mobileapp2@1.0.0 npm error apps/mobileapp2 npm error mobileapp2@1.0.0 npm error node_modules/mobileapp2 npm error workspace apps/mobileapp2 from the root project npm error npm error Could not resolve dependency: npm error peer react@"18.2.0" from react-native@0.74.5 npm error node_modules/react-native npm error react-native@"0.74.5" from mobileapp2@1.0.0 npm error apps/mobileapp2 npm error mobileapp2@1.0.0 npm error node_modules/mobileapp2 npm error workspace apps/mobileapp2 from the root project npm error peer react-native@"" from react-native-gesture-handler@2.18.1 npm error node_modules/react-native-gesture-handler npm error react-native-gesture-handler@"^2.18.1" from mobileapp2@1.0.0 npm error apps/mobileapp2 npm error mobileapp2@1.0.0 npm error node_modules/mobileapp2 npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error /Users/user/.npm/_logs/2024-08-23T12_41_33_233Z-eresolve-report.txt npm error A complete log of this run can be found in: /Users/user/.npm/_logs/2024-08-23T12_41_33_233Z-debug-0.log 2024-08-23 14:41:35.896 [error] Unhandled promise rejection Command failed with exit code 1: npm install npm error code ERESOLVE npm error ERESOLVE unable to resolve dependency tree npm error npm error While resolving: mobileapp2@1.0.0 npm error Found: react@18.3.1 npm error node_modules/react npm error react@"18.3.1" from mobileapp2@1.0.0 npm error apps/mobileapp2 npm error mobileapp2@1.0.0 npm error node_modules/mobileapp2 npm error workspace apps/mobileapp2 from the root project npm error peer react@"" from react-native-gesture-handler@2.18.1 npm error node_modules/react-native-gesture-handler npm error react-native-gesture-handler@"^2.18.1" from mobileapp2@1.0.0 npm error apps/mobileapp2 npm error mobileapp2@1.0.0 npm error node_modules/mobileapp2 npm error workspace apps/mobileapp2 from the root project npm error npm error Could not resolve dependency: npm error peer react@"18.2.0" from react-native@0.74.5 npm error node_modules/react-native npm error react-native@"0.74.5" from mobileapp2@1.0.0 npm error apps/mobileapp2 npm error mobileapp2@1.0.0 npm error node_modules/mobileapp2 npm error workspace apps/mobileapp2 from the root project npm error peer react-native@"" from react-native-gesture-handler@2.18.1 npm error node_modules/react-native-gesture-handler npm error react-native-gesture-handler@"^2.18.1" from mobileapp2@1.0.0 npm error apps/mobileapp2 npm error mobileapp2@1.0.0 npm error node_modules/mobileapp2 npm error npm error Fix the upstream dependency conflict, or retry npm error this command with --force or --legacy-peer-deps npm error to accept an incorrect (and potentially broken) dependency resolution. npm error npm error npm error For a full report see: npm error /Users/user/.npm/_logs/2024-08-23T12_41_33_233Z-eresolve-report.txt npm error A complete log of this run can be found in: /Users/user/.npm/_logs/2024-08-23T12_41_33_233Z-debug-0.log

filip131311 commented 3 weeks ago

Thank you guys, I'll look into it

sanjeethboddi commented 3 weeks ago

Same issue.

image
filip131311 commented 4 days ago

@dpecha777 @hf-yevhen @sanjeethboddi Hello, thank you so much for you feed back today we released a new version of the IDE. Would you mind checking if my fix solved your problems?

hf-yevhen commented 1 day ago

Hi! All is fine now. Thanks for your work!

filip131311 commented 1 day ago

@hf-yevhen thank you! I'm closeing the issue then