λ°μ λ€μ΄ν°λΈ λΌμ°ν° νλμ€ v3.38.1
λ°μ λ€μ΄ν°λΈ v0.42.3
yarn installλ‘ μΈν΄ react-native v0.42.3 λ° react-native v0.41.1μ΄ μ€μΉλ©λλ€.
react λ° react-nativeλ₯Ό react-native-router-fluxμ λν peerDependencyλ‘ μ€μΉν΄μΌ ν©λκΉ?
μ¬ννλ €λ©΄:
λ°μ λ€μ΄ν°λΈ μ΄κΈ°ν {projectName} --version=0.42.3
cd {νλ‘μ νΈ μ΄λ¦}
μμ¬λ react-native-router-fluxλ₯Ό μΆκ°ν©λλ€.
npm μμ
λ λ΄μΌ ν΄
Failed to build DependencyGraph: <strong i="15">@providesModule</strong> naming collision:
Duplicate module name: react-animated
Paths: /Users/bdewitt/sandbox/break/node_modules/react-native-router-flux/node_modules/react-native/Libraries/Animated/release/package.json collides with /Users/bdewitt/sandbox/break/node_modules/react-native/Libraries/Animated/release/package.json
This error is caused by a <strong i="16">@providesModule</strong> declaration with the same name across two different files.
Error: <strong i="17">@providesModule</strong> naming collision:
Duplicate module name: react-animated
Paths: /Users/bdewitt/sandbox/break/node_modules/react-native-router-flux/node_modules/react-native/Libraries/Animated/release/package.json collides with /Users/bdewitt/sandbox/break/node_modules/react-native/Libraries/Animated/release/package.json
This error is caused by a <strong i="18">@providesModule</strong> declaration with the same name across two different files.
at HasteMap._updateHasteMap (/Users/bdewitt/sandbox/break/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:158:13)
at p.getName.then.name (/Users/bdewitt/sandbox/break/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:133:31)
μμ¬ μΆκ° [email protected]
μ±κ³΅ν΄μΌ
λμΌν λ¬Έμ λ₯Ό κ²μνκΈ° μν΄ μ¬κΈ°μ μμ΅λλ€. μ΄ μ»€λ°μ μ’ μμ±μ μ€μλ‘ μΆκ°λ κ² κ°μ΅λλ€: https://github.com/aksonov/react-native-router-flux/commit/34e2d7ac7eb09489c2fd7f19844bd38e27e969fc
λμ peerDependencyλ‘ λμ΄λμ΄μΌνλ€κ³ μκ°ν©λλ€.
λλμ΄ λ¬Έμ μ λν΄ λ¨Έλ¦¬λ₯Ό μ°’κ³ λ¬Έμ μ κ·Όμμ λ°κ²¬νκ²λμ΄ κΈ°μ©λλ€.
jest-haste-map: <strong i="6">@providesModule</strong> naming collision:
Duplicate module name: react-native
Paths: /Users/${username}/Desktop/${appName}/node_modules/react-native-router-flux/node_modules/react-native/package.json collides with /Users/${username}/Desktop/${appName}/node_modules/react-native/package.json
This warning is caused by a <strong i="7">@providesModule</strong> declaration with the same name across two different files.
Failed to build DependencyGraph: <strong i="8">@providesModule</strong> naming collision:
Duplicate module name: react-native-vector-icons
Paths: /Users/${username}/Desktop/${appName}/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/${username}/Desktop/${appName}/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="9">@providesModule</strong> declaration with the same name across two different files.
Error: <strong i="10">@providesModule</strong> naming collision:
Duplicate module name: react-native-vector-icons
Paths: /Users/${username}/Desktop/${appName}/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/${username}/Desktop/${appName}/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="11">@providesModule</strong> declaration with the same name across two different files.
at HasteMap._updateHasteMap (/Users/${username}/Desktop/${appName}/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:158:13)
at p.getName.then.name (/Users/${username}/Desktop/${appName}/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:133:31)
λ΄ package.jsonμμ react-native-router-flux
λ₯Ό μ κ±°νκ³ node_modulesλ₯Ό λ€μ μ€μΉνλ©΄ μ€λ₯κ° λ°μνμ§ μμΌλ―λ‘ νμ€ν react-native-router-flux
μ
λλ€.
κ°μ λ¬Έμ
μ¬κΈ°λ λ§μ°¬κ°μ§μ λλ€. ν¨ν€μ§λ₯Ό μ λ°μ΄νΈνμΈμ.
κ·Έλ, μ΄κ²λ λ΄ ν루λ₯Ό λ§μΉκ³ μμ΄. λΉ λ₯Έ ν΄κ²° λ°©λ²μΌλ‘ react-native-router-flux λ΄μ node_modules ν΄λμμ react-nativeμ μμμλ₯Ό μμ ν μ μμ΅λλ€. λͺ»μκ²Όμ§λ§ μ μ΄λ λΉλΆκ°μ μ μ κ°λλ κ²μ λλ€.
+1
μ§κΈμ 3.38.0μ λ€μ μ€μΉνμμμ€.
npm install --save [email protected]
λ΄κ° λ―Ώλ μμ¬μ κ΄λ ¨μ΄ μμ΅λλ€. npmμΌλ‘ μ€μΉν΄λ κ°μ λ¬Έμ κ° λ°μνκΈ° λλ¬Έμ λλ€. λ΄ node_modules ν΄λλ₯Ό μμ νκ³ npm μΊμλ₯Ό μ§μ μ§λ§ λ¬Έμ κ° μ§μλμμ΅λλ€. νμ¬ λλ node_modules/react-native-router-flux/node_modules/react-native ν¨ν€μ§λ₯Ό μμ ν΄μΌ νλ GitHub λ¬Έμ μμ μ½μ ν΄κ²° λ°©λ²μ μ§ννμ΅λλ€. μ΄ λ¬Έμ κ° κ³§ ν΄κ²°λκΈ°λ₯Ό λ°λλλ€.
μ¬κΈ°λ λ§μ°¬κ°μ§
μμ μ κΈ°λ€λ¦¬λ©° [email protected] λ‘ λ‘€λ°±ν©λλ€.
μ¬κΈ°λ λ§μ°¬κ°μ§
μ΄κ²λ λ§νμ΅λλ€. 3.38.0μΌλ‘ λ‘€λ°±νμ¬ μμ λ¨
watchman watch-del-all
rm -rf node_modules && npm install
npm uninstall react-native-router-flux
npm install --save [email protected]
rm -fr $TMPDIR/react-*
npm cache clean
npm start -- --reset-cache
μ μ λμΌνκ² μλνλ €λ©΄ react-native-router-flux λ΄λΆμ react-native λλ ν 리λ₯Ό μλμΌλ‘ μ κ±°ν΄μΌ νμ΅λλ€.
λ€, μλμΌλ‘ ν΄λλ₯Ό λ‘€λ°±νκ±°λ μ κ±°νμμμ€. ν΄κ²° λ°©λ²μ κ°μ¬λ립λλ€.
λ€μ 릴리μ€μμ λ¬Έμ κ° ν΄κ²°λκΈ°λ₯Ό λ°λλλ€.
κ°μ λ¬Έμ , ν΄κ²°μ λμμ£ΌμΈμ
3.38.0μΌλ‘ λ‘€λ°±νλ©΄ λ¬Έμ κ° ν΄κ²°λμμ΅λλ€. κ°μ¬ν©λλ€!
μ¬κΈ°λ λ§μ°¬κ°μ§μ λλ€. 3.38.0μΌλ‘ λμκ°μ μμ νμ΅λλ€. κ°μ¬ν©λλ€!
+1
κ°μ¬!
μ΄νμΈμ μ€λΉνκ² μ΅λλ€!
λμΌν λ¬Έμ , 3.38.0μΌλ‘ λ‘€λ°± ν΄κ²°λ¨
v0.38.0 μΌλ‘ λ‘€λ°±νκ±°λ react-native-router-flux/node_modules/ λ΄λΆμ react-native ν΄λλ₯Ό μμ νκ³ react -native-router-flux/node_modules/.bin/ λ΄λΆμ react-nativeμ λν μ¬λ³Όλ¦ λ§ν¬λ μμ νλ©΄ λ©λλ€. μ§κΈ.
νΈμμ μ λ΄μ©μ 볡μ¬&λΆμ¬λ£κΈ° νμΈμ π
watchman watch-del-all && rm -rf node_modules && npm install && npm uninstall react-native-router-flux && npm install --save [email protected] && rm -fr $TMPDIR/react-* && npm cache clean && npm start -- --reset-cache
μ§κΈ λ§νμ΄μ, κ°μ¬ν©λλ€
+1
λλ₯Ό μν΄ μΌν κ²μ λ€μ μμμμ΅λλ€.
watchman watch-del-all
rm -rf node_modules && npm μ€μΉ
npm μ κ±° react-native-router-flux
npm install --save [email protected]
rm -fr $TMPDIR/λ°μ-*
npm μΊμ μ 리
npm install [email protected] μ μ₯
npm μμ -- --reset-cache
μμ λͺ¨λ λ¨κ³λ₯Ό μλνμ§λ§ μ€λ₯κ° μ¬λΌμ‘μ§λ§ λΌμ°ν°κ° κ΅¬μ± μμλ₯Ό λ λλ§νμ§ μκ³ μ₯λ©΄μ΄ λ λλ§λμ§ μμ΅λλ€. μ λλ‘ κ°μ Έμ€κ³ μλμ§ λ€μ νμΈνκ³ . μ΄μ λ₯Ό λͺ¨λ₯΄κ² λ€
λͺ
λ Ήμ€ μμ μ μλνλλ° μ€λ₯ μμ΄ λΉλκ° μλνμ§λ§ jestλ‘ λ¨μ ν
μ€νΈλ₯Ό μ€νν λ react-native-router-flux ν΄λμμ node_module ν΄λλ₯Ό μ°Ύμ μ μλ€λ λΆνμ΄ μμ΅λλ€. jestκ° μ¬μ ν μ΄ ν΄λμ λν μ°Έμ‘°λ₯Ό μ»κ³ μλ κ² κ°μ΅λλ€ :(
Jestκ° μ΄κ²μ μ΄λμμ μ°Έμ‘°νλμ§ μλ μ¬λμ΄ μμ΅λκΉ?
ENOENT: no such file or directory, stat '/{projectDirectory}/node_modules/react-native-router-flux/node_modules/react-native/Libraries/Core/ErrorUtils.js
@geecurve λ λμΌν μ€λ₯κ° λ°μνκ³ npm cache clean
, yarn cache clean
, μ¬μ§μ΄ rm -rf node_modules
λ μλνμ§ μμμ΅λλ€. μλ νλ‘μ νΈ λλ ν λ¦¬κ° μ£½μλ€λ κ²μ μκ²λμ΄ μμ μΌμ΄μ€λ‘ μ λλ ν 리λ₯Ό λ§λ€μμ΅λλ€. yarn install
λ₯Ό μ€ννκ³ νλ‘μ νΈλ₯Ό λΉλνκ³ ν
μ€νΈν μ€λΉκ° λμμ΅λλ€.
@prtkkmrsngh /node_modules/react-native-router-flux μμ react-native ν΄λλ₯Ό μμ νμ
¨λμ? λλ react-native-router-flux 3.38.0
(μΌ)λ‘ λλ리μΈμ?
@MattyK14 λ 3.38.0μΌλ‘ λλλ¦¬κ³ RNμ 0.44λ‘ μ κ·Έλ μ΄λνμ΅λλ€.
μ λ° μλ€μ
μ΄ μ€λ₯λ₯Ό μ΄λ»κ² ν΄κ²°ν μ μμ΅λκΉ?
[email protected]
βββ λ‘λ€μ¬. λλ±@4.5.0
βββ λ―ΈμΆ©μ‘± λλ£ μμ‘΄μ± [email protected]
βββ [email protected]
βββ¬ [email protected]
β βββ [email protected]
βββ¬ [email protected]
β βββ¬ [email protected]
β βββ¬ [email protected]
β β βββ [email protected]
β βββ λ©ν° 맀μΉ@2.1.0
βββ¬ [email protected]
β βββ μ§κ² @1.0.1
βββ [email protected]
@nazaslater λ λ²μ μ "react-native-router-flux"λ‘ μμ ν©λλ€: "3.38.0", 3.38.1μ΄ μμ΅λλ€.
@Tonacatecuhtli κ°μ¬ν©λλ€.
ν λ¬μ΄ μ§λ¬μ΅λλ€. μ΄ λ²κ·Έλ₯Ό λλΌ μ μλ μμ μμ μ ν κΈ°νκ° μμ΅λκΉ?
@aksonov λ¬Έμ λ₯Ό ν΄κ²°νμμμ€. 3.39.2
π₯
@abdurrahmanekr @asokol μ΄κ²μ npmμ κ²μν μ μμ΅λκΉ? μ΅μ https://www.npmjs.com/package/react-native-router-flux λ‘ μ¬μ ν 3.39.1μ νμνκ³ μμ΅λλ€.
μ§κΈμ 3.39.2μ λλ€
κ°μ₯ μ μ©ν λκΈ
μ΄κ²λ λ§νμ΅λλ€. 3.38.0μΌλ‘ λ‘€λ°±νμ¬ μμ λ¨