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.

[worker] __vite_ssr_import_8__.extend is not a function

See original GitHub issue

Environment

Nuxt CLI v3.0.0-27376943.f219f63 Nuxt project info:


  • Operating System: Darwin
  • Node Version: v16.12.0
  • Nuxt Version: 3.0.0-27376943.f219f63
  • Package Manager: yarn@1.22.10
  • Bundler: Vite
  • User Config: srcDir, css, build, serverMiddleware, publicRuntimeConfig, privateRuntimeConfig, vite
  • Runtime Modules: -
  • Build Modules: -

Reproduction

When I make a change to my code. On a fairly advanced project.

Describe the bug

I have this error which is displayed and which ends up blocking the refresh of my page (apart from hot reload)

 ERROR  [worker] __vite_ssr_import_8__.extend is not a function                                                                              12:00:15

  at setup (.nuxt/dist/server/server.mjs:38489:27)
  at _sfc_main.setup (.nuxt/dist/server/server.mjs:38636:23)
  at callWithErrorHandling (node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:157:22)
  at setupStatefulComponent (node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:6964:29)
  at setupComponent (node_modules/@vue/runtime-core/dist/runtime-core.cjs.js:6920:11)
  at renderComponentVNode (node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:198:17)
  at renderVNode (node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:304:22)
  at renderVNode (node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:310:17)
  at renderComponentSubTree (node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:269:13)
  at renderComponentVNode (node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:214:16)
  at renderVNode (node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:304:22)
  at renderComponentSubTree (node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:221:9)
  at renderComponentVNode (node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:214:16)
  at renderVNode (node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:304:22)
  at renderComponentSubTree (node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:269:13)
  at renderComponentVNode (node_modules/@vue/server-renderer/dist/server-renderer.cjs.js:214:16)


 ERROR  [proxy] connect ENOENT /var/folders/62/ssjss8m51ml_tpwwz59c3s2c0000gn/T/nitro/worker-98248-6.sock                                    12:00:16

  at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1161:16)

Additional context

No response

Logs

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
danielroecommented, Jan 28, 2022

Probably because you only installed the component on client side, but you were still trying to use it within a bit of your template that was rendered on SSR.

0reactions
bynicodevelopcommented, Jan 28, 2022

Ok I solved the problem It came from the name of the plugin file.

I removed the “.client”

However, I would like to understand why I had this “bug”. 🤔

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: $.jgrid. is not a function - Stack Overflow
Try and paste the link to the grid js file in the browser's address bar (prepended with the address of your site):
Read more >
Console.warn is not a function - Community Support - Temporal
Im using xstate inside one of our workflows, a few days ago they updated their repo to add a console.warn statement inside of...
Read more >
TypeError: t.test is not a function - support - HUGO
Made sure the extended version is installed, and tried installing the packages mentioned in the error message: purgecss and cssnano.
Read more >
Leaflet extension: "this.callInitHooks is not a function"
I wanted to be able to call a function to return my extended object, the same way one calls any standard object (e.g....
Read more >
How to use the dayjs.extend function in dayjs - Snyk
To help you get started, we've selected a few dayjs.extend examples, based on popular ways it is used in public projects.
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