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

Error: Can't resolve 'react' in '[...]/node_modules/zustand/esm' #2096

Closed
bkimminich opened this issue Oct 3, 2023 · 1 comment
Closed

Comments

@bkimminich
Copy link

Summary

Since 4.4.2 I am getting unexpected build failures in an application that has zustand only as a subdependency:

./node_modules/zustand/esm/shallow.mjs:1:0-31 - Error: Module not found: Error: Can't resolve 'react' in '/home/runner/work/juice-shop/juice-shop/frontend/node_modules/zustand/esm'

Link to reproduction

As I am not using zustand directly, I unfortunately can't deliver one. But adding zustand to my direct dependencies as "zustand": "4.4.1" solves the build issue.

@dai-shi
Copy link
Member

dai-shi commented Oct 3, 2023

Let's merge the discussion into #2095.

@dai-shi dai-shi closed this as completed Oct 3, 2023
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

2 participants