build failed using vite, please help #2293
Answered
by
dbritto-dev
hcygit
asked this question in
Bug report
-
I'm not sure it's zustand's issue or vite or immer
this is my store file in project nothing abnormal in development mode, but throws a critical error while building....
vite version 5.0.11 |
Beta Was this translation helpful? Give feedback.
Answered by
dbritto-dev
Jan 12, 2024
Replies: 2 comments 2 replies
-
@hcygit that's expected since immer is a peer dep. You have to install |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hcygit
-
For some reason i had
if you change optional to false and then install it will work. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@hcygit that's expected since immer is a peer dep. You have to install
immer
package in order to use it withzustand