英文:
react page doesn't load on ubuntu but does on local wsl
问题
I'm having a strange issue where code that works perfectly on my local and runs without any issues doesn't work on an ubuntu server
When running npm start, my local shows "Compiled successfully!" while the server shows "Compiled with warnings." and a whole laundry list of issues
The console of my local shows nothing, no errors. The server shows all of the following errors:

None of these errors are present on my local
Things I've tried:
- I made sure both node versions were on their latest (18.x)
- All packages are up to date and installed
I'm simply lost as to what the solution would be
英文:
I'm having a strange issue where code that works perfectly on my local and runs without any issues doesn't work on an ubuntu server
When running npm start, my local shows "Compiled successfully!" while the server shows "Compiled with warnings." and a whole laundry list of issues
The console of my local shows nothing, no errors. The server shows all of the following errors:

None of these errors are present on my local
Things I've tried:
- I made sure both node versions were on their latest (18.x)
- All packages are up to date and installed
I'm simply lost as to what the solution would be
答案1
得分: 0
Turns out I forgot to install the styled-components library when the program is entirely made up of styled components, in addition to updating npm :facepalm:
英文:
Turns out I forgot to install the styled-components library when the program is entirely made up of styled components, in addition to updating npm :facepalm:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。


评论