You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I still can't make socket.io-client 4.x work on IE. But I can confirm that it is NOT because of debug package. Because the error I get is script1010 expected identifier. If I use debug 4.x package, the error is script1002 syntax error
I did add plugins: ["@babel/plugin-transform-object-assign"], // ensure compatibility with IE 11 in my webpack config (actually in my babel.config.js) but I still can't make it works. I have given up supporting IE with 4.x.
// copy from https://socket.io/docs/v4/client-with-bundlers/
module.exports = {
...
mode: "production",
node: false,
module: {
rules: [
{
...
},
{
test: /\.js$/,
loader: "webpack-remove-debug", // remove "debug" package, but I think it is unnecessary
},
],
},
};
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The information at https://socket.io/docs/v4/client-with-bundlers/ is misleading about how to deal with debug package. Because if we use
mode:"production"
for webpack, according to https://socket.io/docs/v4/client-installation/, the production versionsocket.io.min.js
already removes debug package, no need to usewebpack-remove-debug
again.I was bugged by IE support for a long time because of debug 4.x. I opened/commented on issues like debug-js/debug#729 & socketio/socket.io-client#1328
I still can't make
socket.io-client 4.x
work on IE. But I can confirm that it is NOT because of debug package. Because the error I get isscript1010 expected identifier
. If I use debug 4.x package, the error isscript1002 syntax error
I did add
plugins: ["@babel/plugin-transform-object-assign"], // ensure compatibility with IE 11
in my webpack config (actually in my babel.config.js) but I still can't make it works. I have given up supporting IE with 4.x.Beta Was this translation helpful? Give feedback.
All reactions