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
ERROR in [at-loader] ./node_modules/preact-redux/src/preact-redux.d.ts:16:48
TS2344: Type 'keyof T' does not satisfy the constraint 'string'.
Type 'string | number | symbol' is not assignable to type 'string'.
Type 'number' is not assignable to type 'string'.
Using Typescript >= 2.9 an error occurs while bundling a typescript/preact/preact-redux project due to some breaking changes regarding
keyof
.Versions I'm using:
The error:
A quick fix suggested over at microsoft/TypeScript#25260 (comment) is to set
"keyofStringsOnly": true
in the tsconfig.jsonThe text was updated successfully, but these errors were encountered: