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

Nav.jsx Import in App.jsx Error #4

Open
godofthedeath opened this issue Feb 8, 2024 · 1 comment
Open

Nav.jsx Import in App.jsx Error #4

godofthedeath opened this issue Feb 8, 2024 · 1 comment

Comments

@godofthedeath
Copy link

I am getting this error from 1:04:00 from the video on YouTube about this project.

image

The file does exist.

[vite] Internal server error: Failed to resolve import "./components" from "src\App.jsx". Does the file exist?
Plugin: vite:import-analysis
File: C:/Users/blockade/OneDrive/Desktop/nike/src/App.jsx:11:20
25 | SuperQuality
26 | } from "./sections";
27 | import { Nav } from "./components";
| ^
29 | /* @PURE */ jsxDEV(Nav, {}, void 0, false, { .......etc.....

@getFrontend
Copy link

You need to create index.js file before you are importing "import { Nav } from './components';" like this

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