Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

能支持socket.io-client 4.6.1最新版本吗? #107

Open
kingchen2008 opened this issue Mar 16, 2023 · 2 comments
Open

能支持socket.io-client 4.6.1最新版本吗? #107

kingchen2008 opened this issue Mar 16, 2023 · 2 comments

Comments

@kingchen2008
Copy link

用socket.io-client 4.6.1打包,在微信小程序中使用,出现eval之类的错误。
TypeError: Cannot read property 'bind' of undefined
at a (weapp.socket.io4.6.1.wx.js:1)
at new q (weapp.socket.io4.6.1.wx.js:10)
at V (weapp.socket.io4.6.1.wx.js:10)
at Object.initSocketClient (initSocket.js:68)
at eval (app.js? [sm]:301)
at H (eval at n.call.document (runtime.js?devtools_ignore=true:1), :2:68639)
at eval (eval at n.call.document (runtime.js?devtools_ignore=true:1), :2:68861)
at C (eval at n.call.document (runtime.js?devtools_ignore=true:1), :2:38338)

@kingchen2008
Copy link
Author

用socket.io-client 4.1.3打包没有问题。

@johanazhu
Copy link

同问

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants