2

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"
  },
6
  • 1
    Does this help? Blank page after running build on create-react-app Commented Jan 8, 2020 at 5:07
  • @hotpink yes i have tried with fresh create-react-app and it works fine. i think my folder structure is the matter here. Commented Jan 8, 2020 at 6:08
  • does your production build work locally? You can use the serve package and run npm build && serve -s build Commented Jan 8, 2020 at 7:50
  • 1
    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 ✨️ Commented Jan 10, 2020 at 1:12
  • 1
    Can you provide more details on what was wrong with the file structure. so that others can benefit Commented Aug 5, 2020 at 7:46

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.