2
votes

I'm trying to deploy create-react-app(which is currently on github) to netlify. after it deployed it shows a blank page.

Netlify configurations i have added: build command: yarn build, Publish directory: build

and this is my scripts on package.json

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject",
    "predeploy": "npm run build",
    "deploy": "gh-pages -d build"
  },
1
@hotpink yes i have tried with fresh create-react-app and it works fine. i think my folder structure is the matter here. - nipunravisara
does your production build work locally? You can use the serve package and run npm build && serve -s build - hotpink
The problem was the file structure. it gives an black page when i build and serve it on locally. that's mean the deploying flow did't went wrong. then i format the structure again and build and serve it locally then it's fine with my new file structure. Thanks for your help. appreciate that ✨️ - nipunravisara
Can you provide more details on what was wrong with the file structure. so that others can benefit - mvinayakam

1 Answers

1
votes

I was getting blank page only on mobile devices after deploying on Netlify. It worked after I removed REDUX DEVTOOLS EXTENSION from Redux store.