There is a problem with the introduction of element-ui components into the vue project

build a project with vue scaffolding. After visiting the home page successfully in 8080, you want to continue to introduce the element-ui file, and the page reports an error (the error message is the following figure). I don"t know which side has gone wrong. The way to introduce it is to create a new test.vue under the components folder, paste the control code into it for a period of time, and then introduce it in app.vue, and main.js has also done the corresponding configuration

.
import ElementUI from "element-ui"
import "element-ui/lib/theme-chalk/index.css"
Vue.use(ElementUI)

clipboard.png


Component template should contain exactly one root element

the error message has been made clear that there can only be one root node, unless v-if and v-else-if are used.

you can change it a little bit. Put two div in one div:


        <!-- some code -->
    </div>
</section>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b33f1e-4eb3b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b33f1e-4eb3b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?