[worker] __vite_ssr_import_8__.extend is not a function
See original GitHub issueEnvironment
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:
- Created 2 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
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”. 🤔