Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not resolve "three" #136

Open
WillStansill opened this issue Mar 1, 2024 · 1 comment
Open

Could not resolve "three" #136

WillStansill opened this issue Mar 1, 2024 · 1 comment

Comments

@WillStansill
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants