uniapp报错: Unknown custom element: - did you register the component correctly?解决方法

在uniapp开发的时候,调用组件后有如下报错:

页面网页报错: Unknown custom element: <menuDraw> - did you register the component correctly? For recursive components, make sure to provide the "name" option.


这个报错是因为找不到 menuDraw 这个组件导致的

<template>
   <menuDraw></menuDraw>//看看