You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hmmm seems like doing a default export in the JS file can be a workaround. Will take a look a bit later 🤔 .
Not sure if it's a vue core or nuxt bug atm
Will throw the exact error message. Even when I set a simple string instead of the headline component, it will cause this error. Kind of blocking for me, is there any workaround for this? I could wrap these in <ClientOnly>, but this defeats the purpose of SSR.
Environment
Stackblitz
Reproduction
https://stackblitz.com/edit/nuxt-starter-5f85qa?file=app.vue
Describe the bug
Given two components that produce the same output:
JsComponent.js
VueComponent.vue
Added to the Nuxt app via
addComponent
in a Nuxt module definition:If prefixed with Lazy:
The .vue one works as expected, the .js one throws the following SSR error:
src.replace is not a function
.After dealing with this a bit, I found out that if the js component has no child, it doesn't throw any error:
But even a single char or a comment will break things again.
Additional context
No response
Logs
[Vue warn]: Invalid vnode type when creating vnode: undefined. [nuxt] [request error] [unhandled] [500] src.replace is not a function
The text was updated successfully, but these errors were encountered: