Skip to content

Nuxt 3 "generate" results in <font-awesome-icon /> to output whatever follows twice #384

@Morpheu5

Description

@Morpheu5

Describe the bug
I am using this component with Nuxt 3 as described here and I'm seeing this weird behaviour. Say I have something like this

<a href="https://example.com"><font-awesome-icon icon="fa-brands fa-twitter" />Example</a>

if I run the dev server, everything is fine, but if I run generate and serve the output through a static HTTP server, I get "Example" printed twice. If I wrap the text in a tag, I get the tag and text twice (i.e. <span>Example</span><span>Example</span>). Weirdly enough, though, the generated HTML does not contain the repetition, so I suspect something weird is going on in the browser.

Reproducible test case
https://andreafranceschini.org/files/afnuxt.tgz

Expected behavior
A clear and concise description of what you expected to happen.

Desktop (please complete the following information):

  • Happens on all browsers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions