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

[Vue warn]: Component NuxtIcon is missing template or render function. #255

Open
MickL opened this issue Sep 13, 2024 · 0 comments
Open

Comments

@MickL
Copy link

MickL commented Sep 13, 2024

I render a component including icons to html code to be shown in eBay descriptions:

import { renderToString } from '@vue/server-renderer';

await renderToString(
    h(MyComponent, {
      prop1: 'hello',
    }),
  );

Since I updated to 1.4.x the icons are not working anymore. I tried to set mode to 'svg' but it gives me the following warning:

WARN  [Vue warn]: Component NuxtIcon is missing template or render function.
 at <NuxtIcon name="solar:shield-check-outline" size="30px" class="mb-sm"  ... > 

This results in empty svgs tags.

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

No branches or pull requests

1 participant