From 4a043f68ad882347ba1a275e462a4c5bdcd8e744 Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Fri, 19 Sep 2025 01:22:22 -0700 Subject: [PATCH] Chore: Web: Fix build (#13250) --- packages/app-mobile/web/webpack.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/app-mobile/web/webpack.config.ts b/packages/app-mobile/web/webpack.config.ts index fbfc141e5b..8d7af83119 100644 --- a/packages/app-mobile/web/webpack.config.ts +++ b/packages/app-mobile/web/webpack.config.ts @@ -45,6 +45,7 @@ const buildSharedConfig = (hotReload: boolean): webpack.Configuration => { }; const emptyLibraryMock = path.resolve(__dirname, 'mocks/empty.js'); + const throwOnLoadLibraryMock = path.resolve(__dirname, 'mocks/throwOnLoad.js'); return { output: { @@ -78,6 +79,8 @@ const buildSharedConfig = (hotReload: boolean): webpack.Configuration => { '@react-native-documents/picker': emptyLibraryMock, 'react-native-exit-app': emptyLibraryMock, 'expo-camera': emptyLibraryMock, + // Remove this after upgrading react-native-vector-icons. + '@react-native-vector-icons/material-design-icons': throwOnLoadLibraryMock, // Workaround for applying serviceworker types to a single file. // See https://joshuatz.com/posts/2021/strongly-typed-service-workers/.