Hey! Your components folder needs to be under src. Also then make sure your route to People.js is correct - use one dot before the slash since you’re no longer going outside the folder to retrieve it:
I would try changing the repository url link in package.json to match your site. I don’t know how much that matters but that could be it. Then also try going into your Tools > Terminal and just type refresh. I don’t see any issues with your code…If none of that works, you can add me as a collaborator and I can take a closer look!
I don’t anything about React but if this is from a template I would guess the odds that it throws an error are minimal.
I always recommend reducing the app to it’s bare essentials and getting it to run before adding things that could go wrong. So if the People thing is something you added I would remove it temporarily.
Hi, there are a couple of issues with your code. I remixed your app, and you can find the code at Glitch :・゚✧ and the demo at https://rural-flashy-holly.glitch.me.
The changes I made were:
adding an index.html: at the moment, vite doesn’t know what to do with your code. This makes sure it actually serves a file.
renaming .js files to .jsx: otherwise vite doesn’t know that they’re jsx files and raises a syntax error
I didn’t fix the image not existing.
Hopefully this helps - happy glitching!
Looks like @Pufferfish101007 figured it out, but I wanted to add that the .jsx extension is what Vite prefers. If you use something like Create React App for a starter, it will install .js files by default. Both are correct. But you’re more likely to see .js in any example code or tutorial.