pmndrs / tunnel-rat

🐀 Non gratum anus rodentum

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error using with zustand 4.5.0

markusjohnsson opened this issue · comments

After upgrading to latest version of drei, I got this error warning (but since webpack overlays warnings in the browser I want to fix them too):

WARNING in ../../node_modules/tunnel-rat/dist/index.js 18:19-25
export 'create' (imported as 'create') was not found in 'zustand' (possible exports: default)
 @ ../../node_modules/@react-three/drei/web/View.js 5:0-32 9:16-22
 @ ../../node_modules/@react-three/drei/index.js 133:0-37 133:0-37

Adding a dependency to my app on zustand 4.3.2 fixes the error, but I'd rather not have that dependency as I'm not using zustand myself (tunnel-rat was installed as a dependency of drei, zustand as a dependency of tunnel-rat).

I fixed this problem after installing the latest 4.5.2 version of zustand. I don't need zustand and I don't want it in my dependencies list

image

commented

I installed zustand and got this error not sure why

Error: ENOENT: no such file or directory, open 'C:\Projects\thread\node_modules\tunnel-rat\node_modules\zustand\esm\index.mjs'