404 message about a file that doesn't even exist. #1647
Replies: 4 comments 3 replies
-
Hey @Himadu2000, I just resolved a similar problem. My browser had cached some files from other local development environments that also used http://localhost:8080/. Running snowpack would show a 404 as it must be checking failed network requests. I troubleshooted this by opening other browsers and incognito mode and could not see the 404 logged. Clearing my cache and cookies resolved the problem 🤞. |
Beta Was this translation helpful? Give feedback.
-
Try to update fallback routes in your // snowpack.config.js
routes: [
/* Enable an SPA Fallback in development: */
{ match: 'routes', src: '.*', dest: '/index.html' },
], It solved this problem for me. |
Beta Was this translation helpful? Give feedback.
-
Hello @Himadu2000 , ProblemI tried hard reloading and emptying the cache and cookies, but whenever I run CauseI created another project with these files and folders, but I deleted the project. So I switched to the other project and tried running |
Beta Was this translation helpful? Give feedback.
-
This is a very basic and simple answer, but then again, it might actually help somebody. After deleting your scss file, did you then forgot to delete this or a line similar to it? If you forgot to do this, then it's ok, I forgot too. Welcome aboard to the forgetfulness train 🚂 |
Beta Was this translation helpful? Give feedback.
-
[snowpack] [404] /_dist_/client/lib/data/index.js
✘ C:\Website2\Cezerin3\store-snowpack\public\_dist_\client\lib\data\index.js
✘ C:\Website2\Cezerin3\store-snowpack\public\_dist_\client\lib\data\index.mjs
✘ C:\Website2\Cezerin3\store-snowpack\public\_dist_\client\lib\data\index.jsx
✘ C:\Website2\Cezerin3\store-snowpack\public\_dist_\client\lib\data\index.ts
The directory structure looks like,
src/client/lib/
And there's no index.tsx files there.
Here's the example repo,
Example
And thanks for your time!
Beta Was this translation helpful? Give feedback.
All reactions