React says this file doesn’t exist, but it clearly does

i started this project minutes ago, and there’s already problems. i added the file Topbar.jsx, and tried to import it into home.jsx, but React says that the file doesn’t exist. help?

broken page.

1 Like

Topbar.jsx is not jn the same directory as home.jsx. The ./ syntax means ‘look in the same folder as I am in’ - to look in the parent directory, which is what you want, you should be using ../Tobar.jsx (notice the double dot).


ohhh. okay, thanks.