Next.js Discord

Discord Forum

Cannot find module '@react-three/fiber' even though it's in node modules

Answered
misakii posted this in #help-forum
Open in Discord
Not sure where to ask this, but I'm doing import { useThree, Object3DNode, Canvas, extend } from "@react-three/fiber"; and it's giving me this error, even though I can see the folder in node modules, and VSCode is autocompleting it for me.
Answered by misakii
idk why but deleting node_modules and running npm install worked so
View full answer

1 Reply

idk why but deleting node_modules and running npm install worked so
Answer