"useEffect" is not exported by "node_modules/react/index.js" #2641
-
I have built an R3F app using Astro.js. When running dev it works properly. I am trying to export it to a static website using build but I get the below error. I am not using zustand directly but it is a dependency for the below ├─┬ @react-three/drei@9.108.3 "useEffect" is not exported by "node_modules/react/index.js", imported by "node_modules/zustand/esm/index.js". 1: import { useReducer, useRef, useDebugValue, useEffect, useLayoutEffect } from 'react'; |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Would you be able to create a reproduction with https://stackblitz.com ? |
Beta Was this translation helpful? Give feedback.
-
Managed to get the build to work by changing the astro config to
|
Beta Was this translation helpful? Give feedback.
Managed to get the build to work by changing the astro config to