question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ERROR Cannot start nuxt: Cannot destructure property 'Server' of '_engineIo.default' as it is undefined.

See original GitHub issue

Environment


  • Operating System: Windows_NT
  • Node Version: v16.18.0
  • Nuxt Version: 3.0.0
  • Nitro Version: 1.0.0
  • Package Manager: yarn@1.22.19
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

Create a module for socket.io and import it into the nuxt.config.ts file.

image

image

Describe the bug

When trying to import module with socket configured, the nuxt server crashes and throw the error ""ERROR Cannot start nuxt: Cannot destructure property ‘Server’ of ‘_engineIo.default’ as it is undefined. “”.

image

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
sharkfin009commented, Nov 23, 2022

hmm, have the same thing happening with @nuxt/image module

0reactions
SuleymanQcommented, Nov 29, 2022

ok. thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Vue warn]: Error in data(): "TypeError: Cannot destructure ...
I am setting up tests on a Nuxt2 app using @nuxtjs/composition-api and @vue/test-utils . In addition, there is a vue-CLI UI library using ......
Read more >
Cannot destructure Property of Undefined Error in JS
The "Cannot destructure property of undefined" error occurs when we try to destructure a property from a value that is equal to `undefined`....
Read more >
TypeError: Cannot destructure property 'type' of 'undefined ...
Hi, I just installed kibana 8.3.2 on a local windows 10 pc, and when starting it I get this error: Unable to complete...
Read more >
TypeError: Cannot destructure property '…' of 'Object ...
Last night I spent around 3 hours trying to fix this error reading through numerous StackOverflow posts. Finally I had to sleep without...
Read more >
ReferenceError: Buffer is not defined engine.io Code Example
core.js:4352 ERROR TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'. ... Cannot destructure property 'dialog' ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found