I have a React v15 web app that runs fine at localhost. Yet when I deploy it to GitHub pages, I have a CSS module is undefined error:
I've set up a test repo for this issue: https://github.com/ZeningQu/test-repo/tree/master
If you clone the repo and run yarn start, you should be able to see the load-data-pane component: 
But when you do yarn run deploy, the GitHub page is basically empty:
More info:
1 Answers
Answers 1
I couldn't get your repo to work in my local machine. However, I've had problems with deploying React application before. One trick I learnt was to put <base href="/"> in the <head> tag in repo/public/index.html. Maybe you can try that and see if it works for you.


0 comments:
Post a Comment