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

bug/improvement: Warning vuejs car les templates contiennent plusieurs tags (root element) #17

Open
yvalentin opened this issue Aug 26, 2024 · 0 comments

Comments

@yvalentin
Copy link
Contributor

yvalentin commented Aug 26, 2024

Un warning est présent avec vuejs car les templates vuejs générer par de script contiennent plusieurs elements (root element)
Le warning est causé via le mécanisme de Fallthrough Attributes

Exemple:

<template>
  <h1>...</h1>
  <h2>...</h2>
</template>

La solution sera d'entourer le contenu par une balise div

Excepted:

<template>
  <div>
    <h1>...</h1>
    <h2>...</h2>
  </div>
</template>

const vueContent = content

content = `<div>${content}</div>`
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

2 participants
@yvalentin and others