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

292
Views
Se esperaba una tienda redux válida en invariante

Tengo problemas para crear una tienda redux para el sitio web de React. ¿Cómo creo la tienda aquí?

El error:

 Uncaught Invariant Violation: (app/utils...) injectors: Expected a valid redux store at invariant .... The above error occurred in the <HomePage> component: at HomePage (http://localhost:3000/static/js/src_containers_HomePage_index_js.chunk.js:232:5) at ConnectFunction (http://localhost:3000/static/js/bundle.js:51172:68) at Suspense at Routes (http://localhost:3000/static/js/bundle.js:54041:5) at IntlProvider (http://localhost:3000/static/js/bundle.js:50235:43) at ParallaxProvider ..... at Router (http://localhost:3000/static/js/bundle.js:53974:15) at BrowserRouter (http://localhost:3000/static/js/bundle.js:53449:5) at Provider (http://localhost:3000/static/js/bundle.js:50883:20)

Estoy usando react-router-dom v6.

src/index.js:

 import React from 'react'; import { hydrateRoot } from 'react-dom/client'; import { Provider } from 'react-redux'; import { BrowserRouter } from "react-router-dom"; import { createStore } from 'redux' import rootReducer from './reducers' const store = createStore(rootReducer, window.__PRELOADED_STATE__) if (typeof window === 'object') { const container = document.getElementById("root"); hydrateRoot(container, <React.StrictMode> <Provider store={store}> <BrowserRouter> <App /> ...
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Le recomiendo que use redux-toolkit , es más fácil de aprender y usar, y se escribe mucho menos código con él, el código proporcionado no es suficiente.

about 4 years ago · Juan Pablo Isaza 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!