'Electron: Failed to load resource: net::ERR_FILE_NOT_FOUND when trying to load bootstrap
Before I begin, I have seen a large amount of other similar posts, and all of them say, "The file path is wrong", or, "add ./ or ../ in front of the path". I have done all of those things and I'm still getting the following error. I'm totally lost here.
Here's my code:
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css">
And here's the path in explorer:
{{Project Dir}}\node_modules\bootstrap\dist\css\bootstrap.min.css
Once again, I have tried the following and none work. It makes no sense to me:
<link rel="stylesheet" href="node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="../node_modules/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="./node_modules/bootstrap/dist/css/bootstrap.min.css">
Everything always returns the same error:
bootstrap.min.css:1 Failed to load resource: net::ERR_FILE_NOT_FOUND
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
