Nice!
thathurtabit
Creator of
Recent community posts
Doesn't look like there's any way to run a React game with React Router, built with CRA on Itch.io which is a shame. Changing the asset URLs then breaks page routing, and leaving the asset URLs as is returns 403 errors.
Is there away just pull in an iframe of the game instead? It exists on their own pages, and could just be pulled in via an iframe (rather than uploaded and then pulled in via iframe)
Hi thanks for your reply. This issue seems to be talked about here in Create React App: https://github.com/facebook/create-react-app/issues/1094
Hi. I'm having problems uploading my static HTML/React Games.
I choose Kind of Project: HTML and upload a .zip of the following structure:
.zip:
index.html
static/
chunk.js
chunk.js
style.css
etc.
But Itch returns 403 on the static folder assets.
See here: https://thathurtabit.itch.io/doop
NOTE: I eventually got this "working" by setting my "homepage" value in package.json to be "." (i.e. just a dot) then changed by react-router to redirect any values to my game page - this meant even if it didn't understand the itch.io url, it would display the game.