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
devtools.d.ts node_modules/zustand/middleware/devtools.d.ts:33:42 - error TS2312: An interface can only extend an object type or intersection of object types with statically known members.
#2101
Closed
2 of 3 tasks
GabLeRoux opened this issue
Oct 4, 2023
· 2 comments
· Fixed by #2099
A change between zustand 4.4.1 and zustand 4.4.2 seem to broke something in middleware/devtools.d.ts 👀
node_modules/zustand/middleware/devtools.d.ts:33:42 - error TS2312: An interface can only extend an object type or intersection of object types with statically known members.
npm run build
> [email protected] build
> tsc && vite build
node_modules/zustand/esm/middleware/devtools.d.ts:33:42 - error TS2312: An interface can only extend an object type or intersection of object types with statically known members.
33 export interface DevtoolsOptions extends Config {
~~~~~~
Found 1 error in node_modules/zustand/esm/middleware/devtools.d.ts:33
I've created a PR on that same project that demonstrate that this issue doesn't happen when freezing the version to 4.4.1: GabLeRoux/vite-zustand-config-issue#1
Check List
Please do not ask questions in issues.
I've already opened a discussion before opening this issue, or already discussed in other media.
Summary
A change between zustand 4.4.1 and zustand 4.4.2 seem to broke something in
middleware/devtools.d.ts
👀Link to reproduction
Project that reproduces issue:
https://github.com/GabLeRoux/vite-zustand-config-issue
There is a github action that builds the project. You can see it's failing on the
main
branch.I've created a PR on that same project that demonstrate that this issue doesn't happen when freezing the version to 4.4.1:
GabLeRoux/vite-zustand-config-issue#1
Check List
Please do not ask questions in issues.
Please include a minimal reproduction.
Please check this if you're filing an issue regarding TypeScript.
create
is to be used ascreate<T>()(...)
and notcreate<T>(...)
.The text was updated successfully, but these errors were encountered: