Closed jaanhio closed 6 years ago
It looks like your index file is somehow the index created by gatsby develop
and not the one from gatsby build
. Try clearing out your pubic folder, then run gatsby build
. You can test by running gatsby serve
before pushing overything up to github pages.
Thanks @markmichon! it worked!
however, i am not sure why react-track is no longer working as intended, will have to check on it.
Thanks again!
same issue. works with develop. does not work when do build. tried to remove the public folder and create again. same... got: socket.io/socket.io.js net::ERR_ABORTED 404
Same issue as well. Works with gatsby develop
. gatsby build
completes successfully, but fails to load anything on production the first time. 404 errors on missing socket.io and commons.js. Second consecutive page load works, however.
I also have this problem. I'm not sure how I got here either, as I'm using project files that were definitely working before. Maybe a change in my local environment?
Happens on gatsby develop as well as serve. Ubuntu 18.04
In my experience, to get the build to run reliably you must: delete /public, run gatsby clean, wipe remote host, run gastby build, push all files up.
This also addresses the page load fail with 404s on socket/common.js
Cancel that, still seeing 404s for socket.js and common.js
Burning a lot of time debugging gatsby issues.
I am still seeing this, why is this happening? also why it's closed?
It looks like your index file is somehow the index created by
gatsby develop
and not the one fromgatsby build
. Try clearing out your pubic folder, then rungatsby build
. You can test by runninggatsby serve
before pushing overything up to github pages.
In addition to this, try deleting /node_modules/.cache/gh_pages
. It worked for me.
It looks like your index file is somehow the index created by
gatsby develop
and not the one fromgatsby build
. Try clearing out your pubic folder, then rungatsby build
. You can test by runninggatsby serve
before pushing overything up to github pages.In addition to this, try deleting
/node_modules/.cache/gh_pages
. It worked for me.
There's no .cache
in my node_modules
Description
Getting socket.io.js & commons.js error while loading github pages built using gatsby (https://jaanhio.github.io/).
I am not sure why these 2 errors are appearing. Could it be some dependencies issue?
Environment
Gatsby version: 1.9.119 Node.js version: 8.4.0 Operating System: macOS Sierra
File contents (if changed):
gatsby-config.js
:package.json
:Actual result