You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Provide a link to the affected event from your Sentry account
Package + Version
"@sentry/react": "^5.21.1"
Description
When integrating with a project that uses react+redux+redux+redux-toolkit there is a type mismatch when creating the store with configureStore()
The StoreEnhancer type does not match between the on in sentry/react and the one in reduxjs/toolkit
Error message:
TS2322: Type 'StoreEnhancer<Record<string, unknown>, never>' is not assignable to type 'StoreEnhancer<{}, {}>'.
Types of parameters 'next' and 'next' are incompatible.
Types of parameters 'preloadedState' and 'preloadedState' are incompatible.
Type 'PreloadedState | undefined' is not assignable to type 'import(".../node_modules/redux/index").PreloadedState | undefined'.
Type 'PreloadedState' is not assignable to type 'PreloadedState | undefined'.
Type '(S extends CombinedState ? { [K in keyof S1]?: (S1[K] extends Record<string, unknown> ? PreloadedState<S1[K]> : S1[K]) | undefined; } : never) | { [K in keyof S]: S[K] extends string | ... 2 more ... | symbol ? S[K] : PreloadedState<...>; }' is not assignable to type 'PreloadedState | undefined'.
Type 'S extends CombinedState ? { [K in keyof S1]?: (S1[K] extends Record<string, unknown> ? PreloadedState<S1[K]> : S1[K]) | undefined; } : never' is not assignable to type 'PreloadedState | undefined'.
Type '{}' is not assignable to type 'PreloadedState'.
Type 'S extends CombinedState ? { [K in keyof S1]?: (S1[K] extends Record<string, unknown> ? PreloadedState<S1[K]> : S1[K]) | undefined; } : never' is not assignable to type 'PreloadedState'.
Type 'PreloadedState' is not assignable to type 'import(".../node_modules/redux/index").PreloadedState'.
The text was updated successfully, but these errors were encountered:
Package + Version
"@sentry/react": "^5.21.1"
Description
When integrating with a project that uses react+redux+redux+redux-toolkit there is a type mismatch when creating the store with
configureStore()
The
StoreEnhancer
type does not match between the on in sentry/react and the one in reduxjs/toolkitError message:
TS2322: Type 'StoreEnhancer<Record<string, unknown>, never>' is not assignable to type 'StoreEnhancer<{}, {}>'.
Types of parameters 'next' and 'next' are incompatible.
Types of parameters 'preloadedState' and 'preloadedState' are incompatible.
Type 'PreloadedState
| undefined' is not assignable to type 'import(".../node_modules/redux/index").PreloadedState| undefined'.Type 'PreloadedState
' is not assignable to type 'PreloadedState| undefined'.Type '(S extends CombinedState ? { [K in keyof S1]?: (S1[K] extends Record<string, unknown> ? PreloadedState<S1[K]> : S1[K]) | undefined; } : never) | { [K in keyof S]: S[K] extends string | ... 2 more ... | symbol ? S[K] : PreloadedState<...>; }' is not assignable to type 'PreloadedState
| undefined'.Type 'S extends CombinedState ? { [K in keyof S1]?: (S1[K] extends Record<string, unknown> ? PreloadedState<S1[K]> : S1[K]) | undefined; } : never' is not assignable to type 'PreloadedState
| undefined'.Type '{}' is not assignable to type 'PreloadedState
'.Type 'S extends CombinedState ? { [K in keyof S1]?: (S1[K] extends Record<string, unknown> ? PreloadedState<S1[K]> : S1[K]) | undefined; } : never' is not assignable to type 'PreloadedState
'.Type 'PreloadedState
' is not assignable to type 'import(".../node_modules/redux/index").PreloadedState'.The text was updated successfully, but these errors were encountered: