From 0a30e5022bb907a30c928ac10b845e03ed64e94b Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 9 Aug 2023 02:11:35 +0900 Subject: [PATCH] Fix web error --- docker-compose.dev.yml | 9 +++++---- front/apps/web/next.config.js | 2 ++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/docker-compose.dev.yml b/docker-compose.dev.yml index a8f88fa2..31a6177e 100644 --- a/docker-compose.dev.yml +++ b/docker-compose.dev.yml @@ -24,10 +24,11 @@ services: dockerfile: Dockerfile.dev volumes: - ./front:/app - # - /app/.yarn - # - /app/node_modules - # - /app/apps/web/.next/ - # - /app/apps/mobile/.expo/ + - /app/.yarn + - /app/node_modules + - /app/apps/mobile/node_modules + - /app/apps/web/.next/ + - /app/apps/mobile/.expo/ ports: - "3000:3000" - "19000:19000" diff --git a/front/apps/web/next.config.js b/front/apps/web/next.config.js index 75d48866..48c7ed06 100755 --- a/front/apps/web/next.config.js +++ b/front/apps/web/next.config.js @@ -48,6 +48,7 @@ const nextConfig = { alias: { ...config.resolve.alias, "react-native$": "react-native-web", + 'react-native/Libraries/Image/AssetRegistry$': 'react-native-web/dist/modules/AssetRegistry', }, extensions: [".web.ts", ".web.tsx", ".web.js", ".web.jsx", ...config.resolve.extensions], }; @@ -107,6 +108,7 @@ const nextConfig = { "yoshiki", "@expo/vector-icons", "@expo/html-elements", + "expo-image", "expo-font", "expo-asset", "expo-av",