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

TypeError: require(...).listen is not a function #10

Open
zsx151 opened this issue Jan 18, 2021 · 2 comments
Open

TypeError: require(...).listen is not a function #10

zsx151 opened this issue Jan 18, 2021 · 2 comments

Comments

@zsx151
Copy link

zsx151 commented Jan 18, 2021

TypeError: require(...).listen is not a function

@zsx151 zsx151 changed the title 出现bug TypeError: require(...).listen is not a function Jan 18, 2021
@zjp693
Copy link

zjp693 commented Feb 23, 2021

我也是这样

@jokereven
Copy link

@zsx151 , @zjp693 可以这样写 var io = require('socket.io')(server);
更多可以看一下这里: https://stackoverflow.com/questions/64923775/typeerror-require-listen-is-not-a-function

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

3 participants