Closed factiondavid closed 7 months ago
are you importing anything from @redux/toolkit/src? generally my first question would be why your type checker is reading our source files to begin with
are you importing anything from @redux/toolkit/src? generally my first question would be why your type checker is reading our source files to begin with
No I'm not importing anything from @redux/toolkit/src. I am using typescript 5.3.3 in project.
any chance you could share the repo or a reproduction of the issue?
Also make sure you have skipLibCheck: true
inside your tsconfig.json
.
any chance you could share the repo or a reproduction of the issue?
I will work on reproducing and sharing.
Also make sure you have
skipLibCheck: true
inside yourtsconfig.json
.
My ts.config already has that settings enabled.
My mistake there was a type being imported from src. Closing.
My code was building just fine until I updated to "reselect: 5.10"
I change my createSelector to use createSelector.withTypes as documented here
I'm getting error for file: node_modules/@reduxjs/toolkit/src/createDraftSafeSelector.ts
4 export const createDraftSafeSelectorCreator: typeof createSelectorCreator = ( ~ 5 ...args: unknown[]
node_modules/reselect/dist/reselect.d.ts:871:5 871 withTypes:() => CreateSelectorFunction<MemoizeFunction, ArgsMemoizeFunction, OverrideStateType>;
Found 1 error in node_modules/@reduxjs/toolkit/src/createDraftSafeSelector.ts:4
Found 1 error in node_modules/@reduxjs/toolkit/src/createDraftSafeSelector.ts:4`