๋ค์์ ์ฝ์ ๋ก๊ทธ์ ๋๋ค. ์ฌ๊ธฐ์์ ์กฐ์น๋ฅผ ์ทจํ๊ธฐ ์ํ ์ ์ ์ฌํญ์ด ์์ต๋๊น?
Loading dependency graph...
React packager ready.
jest-haste-map: <strong i="10">@providesModule</strong> naming collision:
Duplicate module name: react-native
Paths: /Users/fuatsengul/repo/rn/app/mobile4teog/node_modules/react-native/package.json collides with /Users/fuatsengul/repo/rn/app/mobile4teog/node_modules/react-native-router-flux/node_modules/react-native/package.json
This warning is caused by a <strong i="11">@providesModule</strong> declaration with the same name across two different files.
Failed to build DependencyGraph: <strong i="12">@providesModule</strong> naming collision:
Duplicate module name: react-native-vector-icons
Paths: /Users/fuatsengul/repo/rn/app/mobile4teog/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/fuatsengul/repo/rn/app/mobile4teog/node_modules/react-native-router-flux/node_modules/react-native/local-cli/core/__fixtures__/files/package.json
This error is caused by a <strong i="13">@providesModule</strong> declaration with the same name across two different files.
Error: <strong i="14">@providesModule</strong> naming collision:
Duplicate module name: react-native-vector-icons
Paths: /Users/fuatsengul/repo/rn/app/mobile4teog/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/fuatsengul/repo/rn/app/mobile4teog/node_modules/react-native-router-flux/node_modules/react-native/local-cli/core/__fixtures__/files/package.json
This error is caused by a <strong i="15">@providesModule</strong> declaration with the same name across two different files.
at HasteMap._updateHasteMap (/Users/fuatsengul/repo/rn/app/mobile4teog/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:159:13)
at p.getName.then.name (/Users/fuatsengul/repo/rn/app/mobile4teog/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:134:31)
~
Process terminated. Press <enter> to close the window
๋์ผํ ๋ฌธ์ , ์ด์ ๋ฒ์ ์ผ๋ก ๋กค๋ฐฑํ๋ฉด ์๋ํฉ๋๋ค.
yarn add [email protected]
์๋ก์ด RN ํ๋ก์ ํธ๋ฅผ ์์ํ๋ค๋ฉด React Navigation์ ๋ ์ ์ฌ์ฉํด์ผ ํฉ๋๋ค.
RN .43์ React 16.0 Alpha๋ฅผ ์ฌ์ฉํ๊ณ react-native-router-flux๋ react 15.5๋ฅผ ์ฌ์ฉํฉ๋๋ค.
ํด๊ฒฐ ๋ฐฉ๋ฒ์ด ์์ต๋๊น?
@sporteman ์ ๋ค์ ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์ฌ์ฉํฉ๋๋ค.
"react": "16.0.0-alpha.6",
"react-addons-pure-render-mixin": "15.5.2",
"react-native": "0.43.3",
"react-native-router-flux": "3.38.0",
"react-static-container": "^1.0.1",
์๋ฒฝํ! ๊ทธ๊ฒ์ ๋งค๋ ฅ์ฒ๋ผ ์๋ํฉ๋๋ค! @diegorodriguesvieira ๊ฐ์ฌํฉ๋๋ค
"react-native-router-flux": "3.38.0"์ผ๋ก ๋๋๋ฆฌ๋ฉด ์ ์๊ฒ ํจ๊ณผ์ ์ ๋๋ค. @diegorodriguesvieira ๊ฐ์ฌ
@diegorodriguesvieira ์ ์๋ํฉ๋๋ค ๊ฐ์ฌํฉ๋๋ค!!
์ด ์๋ฃจ์
์ ์ด๋ป๊ฒ ์ฐพ์์ต๋๊น?
์ฌ๊ธฐ์์๋ ๋์ผํ ๋ฌธ์ ๊ฐ ๋ฐ์ํ์ผ๋ฉฐ ์๋ํ๋ ค๋ฉด ๋ฒ์ 3.38.0์ ์ฌ์ฉํด์ผ ํ์ต๋๋ค.
๋๋ ๊ฐ์ ๋ฌธ์ ๊ฐ ์์ง๋ง ๋ค์ ๋จ๊ณ์ ๋ฐ๋ผ ํด๊ฒฐํ์ต๋๋ค.
npm i
๋ช
๋ น์ด๋ก ์ค์น๋ฉ๋๋ค.npm i [email protected] --save
react-native-router-flux ๋ผ์ด๋ธ๋ฌ๋ฆฌ๊ฐ ์ค์น๋ฉ๋๋ค.npm cache clean
๋ช
๋ น์ ์คํํด์ผ ํฉ๋๋ค.๋ค์ ๋จ๊ณ์ ๋ฐ๋ผ react-native-router-flux ํ๋ก์ ํธ์์ ์์ ํ๋ก์ ํธ๋ฅผ ์ํํ ์ ์์ต๋๋ค. ์ด๊ฒ์ด ๋์์ด ๋๊ธฐ๋ฅผ ๋ฐ๋๋๋ค.
@dcolin ์ react-native ๋ฑ์ ์๋ก์ด ๊ธฐ๋ฅ์ ์ ๊ณตํ๋ฉฐ, redux์ react-native-router-flux๋ฅผ ์ฌ์ฉํ์ฌ atm ํ๋ก๋์ ์ฑ์ ๋ง๋ค๊ณ ์์ต๋๋ค.
๋ด๋น๊ฒ์ดํฐ๊ฐ ์ฌ์ฉํ๊ธฐ์ ์ถฉ๋ถํ ์ฑ์ํ์ผ๋ฉฐ redux๋ก ํ ์ ์๋ ๊ฒ๊ณผ ๊ฐ์ ์ผ์ ํ ์ ์์ต๋๊น?
๋ฒ ํ 7 RN์ ๋์ผํ ๋ฌธ์ ๋ฅผ ์ ๊ณตํฉ๋๋ค. ์ต์ ๋ฒ์ ์ React๋ฅผ ์ฌ์ฉํ๋ ๊ฒฝ์ฐ ๋ฒ ํ 8์ ์ฌ์ฉํด์ผ ํฉ๋๋ค.
@yasemincidem ๊ฐ์ฌํฉ๋๋ค - ๊ทํ์ ์ ์์ด ํจ๊ณผ๊ฐ
์ด ์ค ๋์์ด ๋์ง ์์ผ๋ฉด node_modules/react-native-router-flux/node_modules/react-native ํด๋๋ฅผ ์ญ์ ํ ์ ์์ต๋๋ค.
๊ทธ๋ฌ๋ ์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋ ์ต์
์ ๋ฐฉ๋ฒ์
๋๋ค!
๋ค๋ฅธ ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๊ธฐ ์ํด ๋ ธ๋ ๋ชจ๋์ ๋ค์ ์ค์นํ ๋ค์ ์ด๊ฒ์ ์น๊ณ ์ด์ Pod ๋ฐ React-native๋ก ๋ค๋ฅธ ๋ฌธ์ ๋ก ๋์๊ฐ๋๋ค.
:/
๋ณด๋ค ์์ ์ ์ธ react-native-router-flux ๋ฒ์ ์ด ๋์ฌ ๋๊น์ง RN .43๊ณผ ํจ๊ป ํ์ฌ ๋ฒ์ ์ react-native-router-flux๋ฅผ ์ฌ์ฉํ๋ ๊ฒ์ด ์ข์ต๋๋ค.
+1
@provides NameOfModule์ ์ฌ์ฉํ๊ณ ์์๋ค๋ฉด ์ด์ @providesModule๋ก ์ ํํด์ผ ํฉ๋๋ค.
https://github.com/facebook/react-native/releases/tag/v0.44.0
@iegik ๋๋ 0.44.0
.
[email protected]
์ ์ฌ์ ํ ๋ฒ๊ทธ๊ฐ ์์ต๋๋ค.
๋ฐฉ๊ธ [email protected]
๋ค์ด๊ทธ๋ ์ด๋ํ๋๋ฐ ๋งค๋ ฅ์ฒ๋ผ ์๋ํฉ๋๋ค.
btw, ๋๋ ์นด๋ฉ๋ผ ๊ตฌ์ฑ ์์์ ๋น์ทํ ๋ฌธ์ ๊ฐ ์์๊ณ ๋ชจ๋ ๋ฒ์ ์์ ๋์๊ฒ ์ด๊ฒ์ ๋ณด์ฌ์ฃผ์์ต๋๋ค. ๊ฐ์๊ธฐ podfile์ ๊ธ๋ก๋ฒ ํ๋ซํผ์ ์ถ๊ฐํ์ต๋๋ค. platform :ios, '9.0'
[email protected]
์ ์ธํ ๋ชจ๋ ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋ ๊ฒฝ์ฐ
๋ค๋ฅธ ios ๋ฒ์ ์ ํ
์คํธํ์ฌ 3.38.1
์ ํธํ๋๋์ง ํ์ธํ๊ฒ ์ต๋๋ค.
react-native-router-flux์ ๋ค์ ๋ฒ์ ์ด ์ธ์ ๋์ฌ์ง ์์ญ๋๊น? @andkhong
์ด๊ฒ์ ์ฌ์ ํ โโreact-native-router-flux v0.39.1 ๋ฐ react-native v0.43.3์ ๋ฌธ์ ์ ๋๋ค.
@hafizali05 ์๋ํฉ๋๋ค...
๋ค์ ๊ฒฝ๋ก์์ react-native ์ญ์ :
ProjectName > node_modules > react-native-router-flux > node_modules > react-native
์๋ํฉ๋๋ค ...ํ์ง๋ง ์ด๊ฒ์ ์์ ๋์ด์ผํฉ๋๋ค ...
+1
+1
์ฌ์ ํ ๋ฌธ์ ๊ฐ ์์ต๋๋ค
"๋ฐ์ ๋ค์ดํฐ๋ธ": "0.44.2"
"๋ฐ์ ๋ค์ดํฐ๋ธ ๋ผ์ฐํฐ ํ๋ญ์ค": "3.39.2"
+1
๋ชจ๋ node_modules๋ฅผ ์ ๊ฑฐํ๊ณ ๋ค์ ์คํํ์ญ์์ค.
๋ชจ๋ node_modules๋ฅผ ์ ๊ฑฐํ๊ณ ๋ค์ ์คํํ๋ฉด ์๋ํ์ง ์์ง๋ง
rm -r node_modules/react-native-video/node_modules/react-native-windows/ ์๋
@diegorodriguesvieira
์ฃ์กํฉ๋๋ค, ์ฌ๊ธฐ ๋ฉ์ฒญ์ด ... ํด๊ฒฐ ๋ฐฉ๋ฒ์ ์ด๋ป๊ฒ ๊ตฌํํฉ๋๊น?
์์ ์๋ ํจํค์ง ๋ด์์ ์ค๋ณต๋ react_native ์ ์ธ์ ์ ๊ฑฐํ๊ธฐ ์ํด bash๋ก ์์ ์คํฌ๋ฆฝํธ๋ฅผ ๋ง๋ค์์ต๋๋ค. ๊ทธ ์ดํ๋ก ์ต์ ๋ฒ์ ์ผ๋ก ์ ๊ทธ๋ ์ด๋ํ์ง๋ง(๋งค์ฐ ๊ถ์ฅ๋จ) ์ถฉ๋์ ํด๊ฒฐํ๋ ๋ฐ 2์ฃผ๊ฐ ๊ฑธ๋ ธ์ง๋ง ๊ทธ๋งํ ๊ฐ์น๊ฐ ์์์ต๋๋ค.
์์ ์คํฌ๋ฆฝํธ๋ ๋ค์๊ณผ ๊ฐ์์ต๋๋ค. (router-flux ๋ด์์ node_modules์ ๊ฒฝ๋ก๋ฅผ ํ์ธํ์ญ์์ค.)
์์ฌ ์ค์น && rm -rf ./node_modules/react-native-router-flux/node_modules/react-native
react-native-router-flux์ node_modules ํด๋๊ฐ ์์ผ๋ฉด ์ด๋ป๊ฒ ํฉ๋๊น?
node_modules/ ๋ด๋ถ์ ์ค๋ณต ํจํค์ง์ ํจํค์ง ๋ด๋ถ์ ์ค์ฒฉ๋ node_modules๋ฅผ ์ฐพ์ผ์ญ์์ค.
๋ก์ปฌ์์ ๋ชจ๋์ ๊ฐ๋ฐํ ๋ react
, react-native
๋ฐ react-navigation
์ ๊ฐ์ ํจํค์ง๋ฅผ ์ ๊ฑฐํด์ผ ํ๋ ๋ฌธ์ ๊ฐ ์์์ต๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
๋์ผํ ๋ฌธ์ , ์ด์ ๋ฒ์ ์ผ๋ก ๋กค๋ฐฑํ๋ฉด ์๋ํฉ๋๋ค.
yarn add [email protected]