Skip to content

Commit 8f4f09b

Browse files
tido64facebook-github-bot
authored andcommitted
fix(dev-middleware): fix react-native config failing in pnpm setups (#42907)
Summary: In a pnpm setup, `react-native config` fails to read `react-native/react-native.config.js` because `ws` was not installed: ``` % node --print 'require("react-native/react-native.config.js")' node:internal/modules/cjs/loader:1137 throw err; ^ Error: Cannot find module 'ws' ``` ## Changelog: [GENERAL] [FIXED] - fix `react-native config` failing in pnpm setups Pull Request resolved: #42907 Test Plan: n/a Reviewed By: cipolleschi Differential Revision: D53516703 Pulled By: robhogan fbshipit-source-id: 3aded393187df4ca9a7abb64a2c8e0f2c9a5fcd9
1 parent bd6a199 commit 8f4f09b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/dev-middleware/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"open": "^7.0.3",
3434
"selfsigned": "^2.4.1",
3535
"serve-static": "^1.13.1",
36-
"temp-dir": "^2.0.0"
36+
"temp-dir": "^2.0.0",
37+
"ws": "^6.2.2"
3738
},
3839
"engines": {
3940
"node": ">=18"

0 commit comments

Comments
 (0)