error - element - Unknown custom element: <el-upload> - did you register the component correctl

created at 09-04-2021 views: 1

include CDN:

error message:

Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

solution

modify

// error code
<script src="./lib/element-ui/element.js"></script>
<script src="./lib/vue.js"></script>

to

<script src="./lib/vue.js"></script>
<script src="./lib/element-ui/element.js"></script>
Please log in to leave a comment.