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

Module '"zustand-x"' has no exported member 'mapValuesKey'. #94

Closed
volfadar opened this issue Jan 7, 2025 · 3 comments · Fixed by #95
Closed

Module '"zustand-x"' has no exported member 'mapValuesKey'. #94

volfadar opened this issue Jan 7, 2025 · 3 comments · Fixed by #95
Labels
bug Something isn't working

Comments

@volfadar
Copy link

volfadar commented Jan 7, 2025

Description
I've just updated zustand-x to version 5.0.0 and also updated zustand to version 5.0.3. I have also made sure there isn't any news or information about changes to mapValuesKey. Even in the newest documentation or readme.md, it still shows import { mapValuesKey } from 'zustand-x'. Did I miss something, or is this a bug?
image

Expectation
There should be an export for mapValuesKey.

@volfadar volfadar added the bug Something isn't working label Jan 7, 2025
@zbeyens
Copy link
Member

zbeyens commented Jan 7, 2025

cc @imarabinda

@volfadar
Copy link
Author

volfadar commented Jan 7, 2025

EDIT: After some testing with multiple reinstalls and reloading the VS Code window, the error still occurs, even with the "reinstalling" method.


Okay, this is weird. Something went wrong with the upgrades. My case can be reproduced by upgrading in this way, which will result in the error:

bun add zustand@4.5.3 zustand-x@3.0.4
bun add zustand@latest zustand-x@latest

However, if the upgrade is done using the "reinstalling" method, it works fine:

bun remove zustand zustand-x
bun add zustand@latest zustand-x@latest

I don't know if this is just a Bun issue or if all package managers have this problem.

@imarabinda imarabinda linked a pull request Jan 8, 2025 that will close this issue
@zbeyens
Copy link
Member

zbeyens commented Jan 8, 2025

Patched. Your issue seems specific to Bun since I didn't experience it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants