Skip to content

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

@madiyetov

Description

@madiyetov

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions