Skip to content

Commit

Permalink
Fix/#29 React Native 실행 안 되는 문제 해결 (#30)
Browse files Browse the repository at this point in the history
* feat: 의존성 설치

* feat: @react-native/gradle-plugin 설치

* fix: pnpm이 react-native 프로젝트에서 node_modules 찾지 못하는 문제 해결
  • Loading branch information
ghdtjgus76 authored Dec 17, 2024
1 parent b0e71ee commit 5f4cc69
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 37 deletions.
11 changes: 9 additions & 2 deletions apps/app/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
const path = require('path');

/**
* Metro configuration
* https://reactnative.dev/docs/metro
* https://facebook.github.io/metro/docs/configuration
*
* @type {import('metro-config').MetroConfig}
*/
const config = {};
const config = {
resolver: {
unstable_enableSymlinks: true,
unstable_enablePackageExports: true,
},
watchFolders: [path.join(__dirname, '..', '..')],
};

module.exports = mergeConfig(getDefaultConfig(__dirname), config);
1 change: 1 addition & 0 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"@react-native-community/cli-platform-ios": "15.0.1",
"@react-native/babel-preset": "0.76.5",
"@react-native/eslint-config": "0.76.5",
"@react-native/gradle-plugin": "^0.76.5",
"@react-native/metro-config": "0.76.5",
"@react-native/typescript-config": "0.76.5",
"@types/react": "^18.2.6",
Expand Down
38 changes: 3 additions & 35 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5f4cc69

Please sign in to comment.