Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

MitchelBrayon's avatar

Vue 3 The template root requires exactly one element. eslint-plugin-vue

After scaffolding a Vue 3 project I noticed an error in my App.vue.

A functional component that renders the matched component for the given path. Components rendered in can also contain its own omegle.2yu.co , which will render https://omglz.com components for nested paths.

API Reference

[vue/no-multiple-template-root] The template root requires exactly one element.eslint-plugin-vue I tried putting

"vue/no-multiple-template-root": 0 in my .eslintrc.js

But the error remains. How https://omegle.love can I get rid of the error? Since in Vue 3 you don't have to have exactly one element in a template.

module.exports = { root: true, env: { node: true }, extends: [ "plugin:vue/vue3-essential", "eslint:recommended", "@vue/typescript/recommended", "@vue/prettier", "@vue/prettier/@typescript-eslint" ], parserOptions: { ecmaVersion: 2020 }, rules: { "no-console": process.env.NODE_ENV === "production" ? "warn" : "off", "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off", "vue/no-multiple-template-root": 0 } };

0 likes
1 reply
vincent15000's avatar
The template root requires exactly one element.eslint-plugin-vue

Check your code, you probably have multiple <div id="app"></div>.

Or you have perhaps a component which have multiple root elements.

Please or to participate in this conversation.