0

I am attending an online course about JavaScript and ancounter an error I cannot solve. The course uses Google Chrome and suggest using it to for the duration of the course. I am on Manjaro and installed Google Chrome using flatpak. It worked fine so far.

Now I have a index.html file with a link to a JavaScript-File named script.js.

When I start index.html with Firefox or Brave, everything works fine, but when I use Google Chrome I get an error: Failed to load resource: net::ERR_FILE_NOT_FOUND

I discovered, that Google Chrome refers to the location file:///run/user/1000/doc/16d6cd2a/index.html to load the html-file but my project is under /home/user/dev and I started it from there too. My script.js only exists in my project folder and not in the other folder (that I didn't create by myself and I don't know where it comes from).

Does anyone have an idea what I can do to solve that? I think it has something to do, that I installed Chrome with Flatpak, but I am not sure about this. But as I said, all other browsers I tested work fine and open the index.hmtl from the correct source and therefore find the script.js as well.

FrankBlack78
  • 152
  • 11

0 Answers0