From 6e221d824cc91542623bd0c720521006adb180a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A1bio=20Henriques?= Date: Wed, 23 Apr 2025 19:00:17 +0100 Subject: [PATCH] Add note about Java extensions in VS Code --- contributingGuides/HYBRID_APP.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contributingGuides/HYBRID_APP.md b/contributingGuides/HYBRID_APP.md index e18641abca713..504bdc0474cef 100644 --- a/contributingGuides/HYBRID_APP.md +++ b/contributingGuides/HYBRID_APP.md @@ -139,6 +139,10 @@ Executing `npm run clean` clears cache for React Native, Android, and iOS. It me - `Pods`, `DerivedData`, `build`, `cocoapods` - **YAPL**: `npm run clean -- --npm` - `npm`, `Mobile-Expensify/node_modules` (OldDot-specific) +### I use VSCode and the patches are constantly failing during `npm install` +In case you use VSCode and are having problems during `npm install` caused by patch errors, e.g. `@onfido/react-native-sdk` and/or `react-native-vision-camera`, **please check if you have any Java-related extensions enabled in your editor**. In case you have it, try **disabling** them and running the steps specified above to have a clean install. + +The reason is that some Java extensions are constantly creating files inside `node_modules` libraries and thus messing up with `patch-package` logic, so it’s advisable to keep them disabled in order to avoid such problems. ## Android ### Error: `Could not find method autolinkLibrariesFromCommandForPath()`