wrongakram / react-three-fiber

Youtube series to learning React three fiber
77 stars 36 forks source link

Error ./src/App.js Module not found: Can't resolve '@react-three/drei' in "/Users..." when running npm start #5

Open hellomaxvolt opened 3 years ago

hellomaxvolt commented 3 years ago

Hey! Getting this error when I npm start. These are my dependencies- would love to work together to solve this.

{ "name": "sitev2", "version": "0.1.0", "private": true, "dependencies": { "@testing-library/jest-dom": "^4.2.4", "@testing-library/react": "^9.3.2", "@testing-library/user-event": "^7.1.2", "drei": "^0.0.60", "react": "^16.13.1", "react-dom": "^16.13.1", "react-scripts": "3.4.1", "react-spring": "^8.0.27", "react-three-fiber": "^4.2.10", "sass": "^1.26.8", "three": "^0.117.1" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] } }

GodspeedChloe commented 3 years ago

Here are the npm install commands, as they've been updated: npm install three @react-three/fiber npm install @react-three/drei npm install react-spring