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:
errors

None of these errors are present on my local

Things I’ve tried:

  1. I made sure both node versions were on their latest (18.x)
  2. All packages are up to date and installed

I’m simply lost as to what the solution would be