#Trying to deploy on netlify and it only shows as a blank page?

4 messages · Page 1 of 1 (latest)

ionic oriole
#

I just finished the React course and have been trying to deploy the project for 2 days.

When I deploy it it shows 3 404 errors.

The first thing I notice is that I should have an "index.pack.js" that should be created when I run "npm run build" but it isn't being created. the second thing I notice is that it can't find a "style.css" which sounds like my css file except that my file is named "styles.css" with an "s" at the end, but can't find where is the app trying to reach the former. Can someone help?

Here's the repository in case anyone wants to check it: https://github.com/ajmarcano/Quizzical

And here's the deployed webpage: https://6490cf9ab32a79355b4667d7--zesty-fox-748aa6.netlify.app/

GitHub

Quizzical- Quiz project for React. Contribute to ajmarcano/Quizzical development by creating an account on GitHub.

signal fable
#

How did you deploy the project? Did you run npm run build and upload the files manually or did you point netlify to your github repo and let netlify handle the build process?

ionic oriole
#

I ran npm run build and then uploaded the files manually, is that wrong?

signal fable
#

You can use npm run build and then upload manually, but do run npm run preview after building to make sure it still works, and make sure you only upload the contents of the dist folder.

Otherwise, it's far easier and more convenient to link netlify to your github repo and let netlify do everything for you.