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: Cannot destructure property 'Server' of '_engineIo.default' #15363

Open
iamdaveydave opened this issue Nov 4, 2022 · 7 comments
Open

Comments

@iamdaveydave
Copy link

Environment


  • Operating System: Darwin
  • Node Version: v18.9.0
  • Nuxt Version: 3.0.0-rc.13
  • Nitro Version: 0.6.1
  • Package Manager: npm@8.0.0
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/iamdaveydave/nuxt-internal-sctc.git

Describe the bug

I'm following the module author guide, I got an error "Cannot destructure property 'Server' of '_engineIo.default'" after running "npm run dev:prepare".
Someone also created an issue to socket.io few days ago.
socketio/engine.io#657
Screenshot 2022-11-05 at 12 11 45 AM

Additional context

No response

Logs

No response

@u-hafner
Copy link

Also happens on the stable version. So I cannot make a module with socket.io right now ?!

@manniL
Copy link
Member

manniL commented Nov 29, 2022

Most likely a bug related to unjs/jiti#87

@TheOfficialDaveyDave
Copy link

I think it also has something to do with the "listen" hook which does not work on nuxt build.

@dword-design

This comment was marked as duplicate.

@DahisC
Copy link

DahisC commented Dec 10, 2022

It seems happened when socket.io version >= 4.5.3
temporarily downgrade to 4.5.2 worked for me.

@patrickkabwe
Copy link

It seems happened when socket.io version >= 4.5.3 temporarily downgrade to 4.5.2 worked for me.

It didnt work on my end, can you share example project.

Thanks

@danielroe danielroe added the 3.x label Jan 19, 2023
@danielroe danielroe transferred this issue from nuxt/framework Jan 19, 2023
@TheOfficialDaveyDave
Copy link

It seems happened when socket.io version >= 4.5.3 temporarily downgrade to 4.5.2 worked for me.

It didnt work on my end, can you share example project.

Thanks

here https://github.com/console0811/nuxt-internal-sctc

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

No branches or pull requests

8 participants