Open daniel-a126 opened 1 month ago
Hey @daniel-a126 , thanks for reaching us. We have some logics in extension related to npm
command and module. pnpm
have some differences on structures. Will investigate to improve compatibility for pnpm
, adding this in TODO list and any updates will comment here. Thank you!
🐛 What is the bug? How can we reproduce it?
Please put here any steps, code or any information that can help us reproduce the error on our side so we can fix it:
pnpm
packager (see https://pnpm.io/installation)pnpm
packager and build itAdd Metro configuration: metro.config.js
Package fails to start. See output channel for the error detail.
Expected behavior
Metro packager starts.
Debug output
Debug Console
```text (empty) ```React Native output channel
```text [Error] Failed to start the React Native packager (error code 106) Stack: Error: Failed to start the React Native packager (error code 106): The package 'opn' was not found. Error: Opn package location not found (error code 501) (error code 502) at o.getWrappedError (/Users/djkveton/.vscode/extensions/msjsdiag.vscode-react-native-1.13.0/dist/rn-extension.js:21:382537) at i.wrapError (/Users/djkveton/.vscode/extensions/msjsdiag.vscode-react-native-1.13.0/dist/rn-extension.js:21:374834) at /Users/djkveton/.vscode/extensions/msjsdiag.vscode-react-native-1.13.0/dist/rn-extension.js:21:374403 ```Developer Tools console
```text localProcessExtensionHost.ts:275 Extension Host localProcessExtensionHost.ts:276 2024-10-17 10:54:52 debug [extension.js]: [MSG] TelemetryService: start: Flush Success console.ts:137 [Extension Host] 2024-10-17 10:55:02 debug [extension.js]: [MSG] TelemetryService: start: Flush Success localProcessExtensionHost.ts:275 Extension Host localProcessExtensionHost.ts:276 2024-10-17 10:55:02 debug [extension.js]: [MSG] TelemetryService: start: Flush Success ```Environment
Please tell us about your system and your project:
npx react-native doctor
ornpx expo doctor
if your project is using Expo:envinfo
: