• 로그인
  • 장바구니에 상품이 없습니다.

home2 게시판 React 게시판 redux 오류 질문드립니다!

redux 오류 질문드립니다!

  • 이 주제에는 1개 답변, 2명 참여가 있으며 codingapple3 년 전에 전에 마지막으로 업데이트했습니다.
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 글쓴이
  • #42262

    김철준
    참가자
    index.js에서 이렇게 했는데
    
    
    import React from 'react';
    import ReactDOM from 'react-dom/client';
    import './index.css';
    import App from './App';
    import reportWebVitals from './reportWebVitals';
    import { BrowserRouter } from 'react-router-dom';
    import store from './store.js';
    import { Provider } from 'react-redux';
    const root = ReactDOM.createRoot(document.getElementById('root'));
    root.render(
    <Provider store={store}>
    <BrowserRouter>
    <App />
    </BrowserRouter>
    </Provider>
    );
    // If you want to start measuring performance in your app, pass a function
    // to log results (for example: reportWebVitals(console.log))
    // or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
    reportWebVitals();
    페이지가 빈화면으로 나와서 콘솔창을 확인해보니까 이런 에러가 있습니다
    
    
    
    Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. react.development.js:209
     
    Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. react.development.js:209
     
    Uncaught TypeError: can't access property "useMemo", dispatcher is null    useMemo React
        Provider Redux
        React 11
        workLoop scheduler.development.js:266
        flushWork scheduler.development.js:239
        performWorkUntilDeadline scheduler.development.js:533
    react.development.js:1650
     
    Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. react.development.js:209
     
    Warning: Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons: 1. You might have mismatching versions of React and the renderer (such as React DOM) 2. You might be breaking the Rules of Hooks 3. You might have more than one copy of React in the same app See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem. react.development.js:209
     
    The above error occurred in the <Provider> component: Provider@http://localhost:3000/static/js/bundle.js:64534:7 Consider adding an error boundary to your tree to customize error handling behavior. Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries. react-dom.development.js:18687
     
    Uncaught TypeError: can't access property "useMemo", dispatcher is null    useMemo React
        Provider Redux
        React 12
        workLoop scheduler.development.js:266
        flushWork scheduler.development.js:239
        performWorkUntilDeadline scheduler.development.js:533
    react.development.js:1650
     
    Uncaught TypeError: can't access property "useMemo", dispatcher is null    useMemo React
        Provider Redux
        React 9
        workLoop scheduler.development.js:266
        flushWork scheduler.development.js:239
        performWorkUntilDeadline scheduler.development.js:533
    
    검색해봐도 잘 나오지 않아 질문드립니다..!
    
    #42292

    codingapple
    키 마스터
    useMemo 쓰는 곳이 이상한지 확인해봅시다
2 글 보임 - 1 에서 2 까지 (총 2 중에서)
  • 답변은 로그인 후 가능합니다.

About

현재 월 700명 신규수강중입니다.

  (09:00~20:00) 빠른 상담은 카톡 플러스친구 코딩애플 (링크)
  admin@codingapple.com
  이용약관, 개인정보처리방침
ⓒ Codingapple, 강의 예제, 영상 복제 금지
top

© Codingapple, All rights reserved. 슈퍼로켓 에듀케이션 / 서울특별시 강동구 고덕로 19길 30 / 사업자등록번호 : 212-26-14752 온라인 교육학원업 / 통신판매업신고번호 : 제 2017-서울강동-0002 호 / 개인정보관리자 : 박종흠