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:
load-data-pane componentI 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With