Vue reported an error vue.js:525 [Vue warn]: Cannot find element:-sharpapp

when I started learning vue.js, I reported an error vue.js:525 [Vue warn]: Cannot find element:-sharpapp
here is my code:

clipboard.png

clipboard.png


do not put it in template, because the template element is-sharpdocument-fragment, in the DOM tree, so the div in it cannot be found, see https://developer.mozilla.org..


template is written as a single component. Without templete, generally vue projects are built with vue-cli


vue2.0. The same problem cannot be solved.


the main file definition does not need to be wrapped with template, and the subcomponent definition requires only one root element, so template is usually used to wrap

.
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-1be3ad4-30be1.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-1be3ad4-30be1.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?