react icon from fontawesome entypo dist react-native react-native-router-flux native-base

react native - from - Nombre del módulo duplicado: reaccionar-native-vector-icons



react-native-vector-icons (4)

Cuando instalo NativeBase y React-Native-Router-Flux en mi proyecto react-native obtengo este error:

Failed to build DependencyGraph: @providesModule naming collision: Duplicate module name: react-native-vector-icons Paths: /Users/vittori/Desktop/repos/GitHubExamples/native-starter-kit/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/vittori/Desktop/repos/GitHubExamples/native-starter-kit/node_modules/react-native-router-flux/node_modules/react-native/local-cli/core/__fixtures__/files/package.json This error is caused by a @providesModule declaration with the same name across two different files. Error: @providesModule naming collision: Duplicate module name: react-native-vector-icons Paths: /Users/vittori/Desktop/repos/GitHubExamples/native-starter-kit/node_modules/react-native/local-cli/core/__fixtures__/files/package.json collides with /Users/vittori/Desktop/repos/GitHubExamples/native-starter-kit/node_modules/react-native-router-flux/node_modules/react-native/local-cli/core/__fixtures__/files/package.json This error is caused by a @providesModule declaration with the same name across two different files. at HasteMap._updateHasteMap (/Users/vittori/Desktop/repos/GitHubExamples/native-starter-kit/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:159:13) at p.getName.then.name (/Users/vittori/Desktop/repos/GitHubExamples/native-starter-kit/node_modules/react-native/packager/src/node-haste/DependencyGraph/HasteMap.js:134:31)


Debería poder actualizar reaccionar-native-router-flux usando: npm i react-native-router-flux --save

Es posible que al intentar iniciar el paquete de paquetes react-native falle nuevamente y que la ejecución sea útil:

1. Clear watchman watches: `watchman watch-del-all`. 2. Delete the `node_modules` folder: `rm -rf node_modules && npm install`. 3. Reset packager cache: `rm -fr $TMPDIR/react-*` or `npm start --reset-cache`.

Puede ver una vez que intenta ejecutar nuevamente el empaquetador errores tales como:

Failed to build DependencyGraph: @providesModule naming collision: Duplicate module name

Es posible que deba ejecutar nuevamente la instalación de npm para reaccionar-native-router-flux.



Si trabajas con hilo, ejecuta este comando. yarn add [email protected]

Y si trabajas con npm, ejecuta este comando. npm install [email protected] --save

También sigue teniendo el problema. Por favor, cambie la versión de reac-native a 0.41.2.

Entonces, funcionará.


NativeBase 2.1.4 resuelve este problema