I followed a tutorial to deploy a React app to github pages. When I deploy, I get no error messages, but when I check the URL, I just see a blank page, i used parcel to bundle the app and i am commiting the DIST file (see https://the717q.github.io/my-react-app/).
It runs locally fine using "npm start". Whenever I deploy I just run "npm run deploy".
My repository is here: https://github.com/the717q/my-react-app
I already tried everything but i am not being able to fix this.
Here is my package.json file:
{
"name": "projetoreact",
"version": "1.0.0",
"description": "",
"private": false,
"author": "",
"license": "ISC",
"dependencies": {
"gh-pages": "^4.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0"
},
"devDependencies": {
"parcel": "^2.7.0",
"process": "^0.11.10"
},
"scripts": {
"start": "parcel ./public/index.html",
"build": "parcel ./public/index.html",
"deploy": "gh-pages -b master -d dist"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}