Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

654
Views
Error: no se puede resolver el módulo react-redux/native

Estoy probando mi primera aplicación nativa de reacción con Redux y al ejecutar la aplicación en el dispositivo obtengo el siguiente mensaje de error,

"UnableToResolveError: no se puede resolver el módulo react-redux/native desde C:\project\Testing\index.android.js: el módulo no existe en el mapa del módulo o en estos directorios: C:\project\Testing\node_modules\react- redux"

paquete.json:

{
"nombre": "Prueba",
"versión": "0.0.1",
"privado": cierto,
"guiones": {
"inicio": "nodo node_modules/react-native/local-cli/cli.js start",
"prueba": "broma"
},
"dependencias": {
"reaccionar": "15.4.1",
"reaccionar-nativo": "0.40.0",
"reaccionar-redux": "^5.0.2",
"redux": "^3.6.0",
"redux-thunk": "^2.2.0"
},
"Dependencias de desarrollo": {
"babel-jest": "18.0.0",
"babel-preset-react-native": "1.9.1",
"broma": "18.1.0",
"reaccionar-prueba-procesador": "15.4.1"
},
"broma": {
"preestablecido": "reaccionar nativo"
}
}

index.android.js:

 import React, { AppRegistry } from 'react-native'; import { Provider } from 'react-redux/native'; import App from './src/containers/App'; import configStore from './src/stores/configStore'; const store = configStore(); var TestingApp = React.createClass({ render () { return ( ... ); } }); AppRegistry.registerComponent('TestingApp', () => TestingApp);

Amablemente ayude a resolver el problema.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Desde index.js de react-redux , puede obtener que el Provider sea exportado directamente por react-redux .

Por lo tanto, debe usar import { Provider } from 'react-redux' en lugar de import { Provider } from 'react-redux/native' .

También puede consultar el ejemplo desde aquí .

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!