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
Hi 👋 I ran into this issue when trying to import a client only component with an explicit import
import{Hello}from"#components"
However it seems that a .server component fallback is mandatory for Nuxt server-side, I can workaround this by adding a Hello.server.vue but i don't think that this is an expected behavior.
Calling the component without specifying the import works.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered:
EDIT: my bad, explicit imports does not work even with #components. @danielroe Are .client.vue components supposed to be converted with createClientOnly when importing from #components ?
Environment
Linux
v16.15.0
3.0.0-rc.8
yarn@3.2.3
vite
-
-
-
Reproduction
https://stackblitz.com/edit/github-ewymne?file=app.vue,components%2FHello.client.vue
Describe the bug
Hi 👋 I ran into this issue when trying to import a client only component with an explicit import
However it seems that a .server component fallback is mandatory for Nuxt server-side, I can workaround this by adding a Hello.server.vue but i don't think that this is an expected behavior.
Calling the component without specifying the import works.
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: