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

682
Views
TypeError no detectado: (0, _createStore.default) no es una función

Estoy cambiando mi aplicación redux-react a la aplicación gatsby, me enfrento a este problema ingrese la descripción de la imagen aquí

y ya no puedo ver las paginas. Intenté seguir estas instrucciones: https://github.com/gatsbyjs/gatsby/tree/master/examples/using-redux pero tengo este problema. createStore.js:

 import { createStore, applyMiddleware } from 'redux' import logger from 'redux-logger' import createSagaMiddle from 'redux-saga' import rootSaga from './rootSaga' import rootReducer from './rootReducer' import thunk from 'redux-thunk'; const sagaMiddleware = createSagaMiddle() export const middlewares = [thunk,sagaMiddleware,logger]; export const store = createStore(rootReducer, applyMiddleware(...middlewares)) sagaMiddleware.run(rootSaga) export default store;

rootReducer.js:

 import { combineReducers } from 'redux' import userReducer from './User/user.reducer' export default combineReducers({ user: userReducer })

envolver con proveedor.js:

 import * as React from 'react'; import { Provider } from 'react-redux'; import store from './src/state/createStore' const wrapWithProvider = ({ element }) => ( <Provider store={store}>{element}</Provider> ); export default wrapWithProvider

y gatsby-ssr.js / gatsby-navegador.js:

 import wrapWithProvider from "./wrap-with-provider" export const wrapRootElement = wrapWithProvider

lo que probablemente podría ser la razón.

over 4 years ago · Santiago Trujillo
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!