My site is working perfectly in localhost .can someone help me with this issue??
Hmm what are you build settings configured to? Also can you give this thread a read and try the varying solutions and see if one works for you?
@samarpitsneh This is just due to the system you’ve chosen to use and how you have it configured.
Message shown during your build:
Your deployed HTML:
Asset references not found:
Because you’ve deployed them here:
https://monumental-rolypoly-d8d154.netlify.app/static/js/main.1743f7d1.js
https://monumental-rolypoly-d8d154.netlify.app/static/css/main.33b237f2.css
https://monumental-rolypoly-d8d154.netlify.app/manifest.json
So you have your react app set to be hosted at /fb-frontend/
(or more specifically at github):
Then it appears that on Netlify you have the Publish directory set to fb-frontend
.
So react is writing all the references as if it will be hosted at /fb-frontend/
, but then it’s being hosted at /
.
If you want to have fb-frontend
as your Publish directory, then change the homepage
in the package.json
appropriately.