adrianhajdin / project_3D_developer_portfolio

The most impressive websites in the world use 3D graphics and animations to bring their content to life. Learn how to build your own ThreeJS 3D Developer Portfolio today!
https://jsmastery.pro
5.71k stars 1.26k forks source link

Could not resolve "three" #136

Open WillStansill opened 5 months ago

WillStansill commented 5 months ago

Hey guys Ive tried restarting the tutorial twice and I'm met with the same problem at the same time. Right at about 18:50 in the beginning of the tutorial I can get the project to open but when I import these components import {About, Contact, Experience, Feedbacks, Hero, Navbar, Tech, Works, StarsCanvas } from './components'; on line 2 of App.jsx im met with a very large number of errors that all begin with the same statement of "could not resolve "three"" here is one of those errors for context

[ERROR] Could not resolve "three"

node_modules/three-stdlib/controls/DragControls.js:7:77:
  7 │ import { EventDispatcher, Plane, Raycaster, Vector2, Vector3, Matrix4 } from "three";

  if anyone has an suggestions I'm all ears, like i've said I have restarted a few times now making sure I installed the dependancies exactly as he did on screen and was met with the same result. 
GOURAVSINGH19 commented 5 months ago

Install npm i --legacy-peer-deps three maybe it help