Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default export is deprecated. Instead use import { createStore } from 'zustand/vanilla' #6

Open
madiyetov opened this issue Nov 25, 2024 · 0 comments

Comments

@madiyetov
Copy link

madiyetov commented Nov 25, 2024

Description

The next warning is coming from the zustand-pub since it imports the createStore not correctly:
[DEPRECATED] Default export is deprecated. Instead use import { createStore } from 'zustand/vanilla'.

I checked the source code out. You've fixed it here:
e6c852e#diff-6f7df3ffeb17d1b3df1802118e68eab0a84565c51fb83f257d2dcabd85997ef5R1

But somehow it didn't affect the build output:
image

As you can see, the createStore method is still imported as a default. Possibly, you forgot to rebuild the package before releasing it.

"version": "1.0.0-beta.19"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant