have been encountering the same problem with importing the package module with error code:
vendor.a03adc80.js from UglifyJs
Name expected [./node_modules/engine.io-client/build/esm/util.js:2,7][vendor.a03adc80.js:202,19]
FAIL Compiled with errors!
Fixed it with importing higher directory files:
import socketio from "socket.io-client/dist/socket.io";
have been encountering the same problem with importing the package module with error code:
Fixed it with importing higher directory files:
import socketio from "socket.io-client/dist/socket.io";
Found the solution at socket.io git: link