Skip to content
Discussion options

You must be logged in to vote

NOT A BUG!

The error was caused by stale node_modules!

After a fresh pnpm install, the build passes with direct zustand imports

✅ No TypeScript errors

This was likely caused by:

  • Stale cached type definitions from an older Zustand version
  • pnpm's symlink structure getting out of sync

Lesson learned: When encountering bizarre TypeScript errors, try rm -rf node_modules pnpm-lock.yaml && pnpm install first!

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@parvez
Comment options

@parvez
Comment options

Answer selected by parvez
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
2 participants