La nostra webapp dipende da React 15. Per mantenere la parità tra i dispositivi Android/iOS, import React from "react";
dovrebbe produrre React 15 anche sui dispositivi. Tuttavia, dopo l'installazione di [email protected] via NPM e il tentativo di avviare l'applicazione Android in modalità dev, sono un ricevere questo errore:React Native Duplicate nome del modulo
Failed to build DependencyGraph: @providesModule naming collision:
Duplicate module name: IOSDefaultEventPluginOrder Paths: /node_modules/react/lib/IOSDefaultEventPluginOrder.js collides with /node_modules/react-native/Libraries/ReactIOS/IOSDefaultEventPluginOrder.jsThis error is caused by a @providesModule declaration with the same name accross two different files. Error: @providesModule naming collision: Duplicate module name: IOSDefaultEventPluginOrder
Paths: /node_modules/react/lib/IOSDefaultEventPluginOrder.js collides with /node_modules/react-native/Libraries/ReactIOS/IOSDefaultEventPluginOrder.jsThis error is caused by a @providesModule declaration with the same name accross two different files. at HasteMap._updateHasteMap (/node_modules/node-haste/lib/DependencyGraph/HasteMap.js:160:15) at /node_modules/node-haste/lib/DependencyGraph/HasteMap.js:125:25
ho capito che questo è dovuto a reagire e reagire nativo che contiene il stesso file js, ma qualcuno sa se esiste un modo per risolvere correttamente queste dipendenze?
Ambiente: - Mac OSX (ultima) - Android (non ho ancora testato su iOS) - Reagire nativo 0.25.0-rc
La soluzione è stata pubblicata [qui] (http://stackoverflow.com/questions/43540811/duplicate-module-name-react-native-vector-icons?answertab=active#tab-top) Ho postato la soluzione lì . – fcemmon