I'm currently trying to setup my first react project using redux and run in a compiler error right from the start.
I installed redux and redux toolkit like this:
npm install @reduxjs/toolkit react-redux
Then I added a store.ts file with this content
import { configureStore } from '@reduxjs/toolkit'
export default configureStore({
reducer: {}
})
When I try to compile the project I get the following error message:
[09:54:12] Error - [tsc] ../node_modules/@reduxjs/toolkit/dist/createSlice.d.ts(128,125): error TS1005: '?' expected. [09:54:12] Error - [tsc] ../node_modules/@reduxjs/toolkit/dist/createSlice.d.ts(128,154): error TS1005: ';' expected. [09:54:12] Error - 'tsc' sub task errored after 8
My typscript version is 3.9.10
Any Ideas what could be causing this?