store.js에
import { configureStore, createSlice } from '@reduxjs/toolkit'
export default configureStore({
reducer: {
}
})
를 입력하고 index.js에
import store from './store.js' 를 입력하고 저장하면
Failed to compile.
./node_modules/@reduxjs/toolkit/dist/redux-toolkit.legacy-esm.js 331:12
Module parse failed: Unexpected token (331:12)
You may need an appropriate loader to handle this file type.
| return false;
| }
> if (cache?.has(value)) return false;
| const entries = getEntries != null ? getEntries(value) : Object.entries(value);
| const hasIgnoredPaths = ignoredPaths.length > 0;
이런 오류가 납니다.
react react dom 버전은 18.2 입니다