adrianhajdin / project_threejs_ai

https://jsmastery.pro
893 stars 267 forks source link

Error while importing// fixed by self #20

Closed FrancisJTR7 closed 1 year ago

FrancisJTR7 commented 1 year ago

Failed to resolve entry for package "@react-three/drei". The package may have incorrect main/module/exports specified in its package.json.

The package is installed. The main, module, and exports fields are specified correctly in the package.json. My import statement is correct. I uninstalled the node modules and reinstalled. I checked compatibility. I updated Vite.

I even downloaded your content and then pasted it into a new folder with with my node_modules to determine where the issue lied and it still persisted.

Console: :Failed to load resource: the server responded with a status of 500 (Internal Server Error) :5173/src/canvas/index.jsx:1 Failed to load resource: the server responded