My React-js app works fine when I use npm start to run it on localhost:3000.
However, when I deploy it, I can only see a blank page. There is also an error that is displayed:
Uncaught TypeError: Super expression must either be null or a function
at index.js:974:1
at index.js:973:1
at Module.<anonymous> (index.js:972:1)
at n (index.js:14:1)
at e.exports (index.js:50:6)
at Object.<anonymous> (index.js:4:1)
at f ((index):1:1250)
at 239 (Profile.jsx:188:28)
at f ((index):1:1250)
at 148 (login-page-pic.png:1:41)
I have run npm build and I have made sure that the branch settings are at "master", which is where the build files are.
There are no errors when I run npm build and when I run npm deploy.
My github repository for the whole application is here.