Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netlify SSR [Vue warn]: Component <Anonymous> is missing template or render function. #14827

Closed
itsmnthn opened this issue Sep 7, 2022 · 1 comment · Fixed by nuxt/framework#7389

Comments

@itsmnthn
Copy link
Contributor

itsmnthn commented Sep 7, 2022

Environment

❯ npx nuxi info
Nuxi 3.0.0-rc.9 18:29:24
RootDir: /home/projects/nuxt-starter-m56paj 18:29:26
Nuxt project info: 18:29:26


  • Operating System: Linux
  • Node Version: v16.14.2
  • Nuxt Version: 3.0.0-rc.9
  • Nitro Version: 0.5.1
  • Package Manager: npm@7.17.0
  • Builder: vite
  • User Config: -
  • Runtime Modules: -
  • Build Modules: -

Reproduction

https://github.com/itsmnthn/nuxt-starter-m56paj
or
https://stackblitz.com/edit/nuxt-starter-m56paj

deploy preview

https://loquacious-nasturtium-c634e1.netlify.app/

to reproduce locally try

netlify build

netlify dev

Describe the bug

Pages doesn't get rendered on server due to WARN [Vue warn]: Component <Anonymous> is missing template or render function. on netlify function
image

added log at
image

found out that it is happening for layouts/empty.vue
image

Additional context

No response

Logs

Sep 7, 06:25:10 PM: 895f585b Duration: 99.32 ms	Memory Usage: 72 MB	Init Duration: 286.83 ms	Sep 7, 06:25:10 PM: 6c400d39 Duration: 105.75 ms	Memory Usage: 72 MB	Init Duration: 278.09 ms	Sep 7, 06:25:48 PM: 38926bc2 WARN   [Vue warn]: Component <Anonymous> is missing template or render function.Sep 7, 06:25:48 PM: 38926bc2 Duration: 41.55 ms	Memory Usage: 74 MB	Sep 7, 06:25:50 PM: 7e4c8c69 Duration: 25.62 ms	Memory Usage: 74 MB	Sep 7, 06:25:51 PM: e19bc489 WARN   [Vue warn]: Component <Anonymous> is missing template or render function.Sep 7, 06:25:51 PM: e19bc489 Duration: 9.17 ms	Memory Usage: 74 MB	Sep 7, 06:25:53 PM: 42c3e4cf Duration: 3.29 ms	Memory Usage: 74 MB	Sep 7, 06:27:23 PM: f29737a8 WARN   [Vue warn]: Component <Anonymous> is missing template or render function.Sep 7, 06:27:23 PM: f29737a8 Duration: 6.37 ms	Memory Usage: 75 MB	Sep 7, 06:27:24 PM: 64f329b2 Duration: 1.65 ms	Memory Usage: 75 MB
@itsmnthn
Copy link
Contributor Author

itsmnthn commented Sep 7, 2022

this happens for layout default also
image

Tried all possible ways described here in doc but getting same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants