This error occurs when creating dynamic components using JSX:
Unknown custom element: <component> - did you register the component correctly
The reason is that we take it for granted that in template syntax, dynamic components are created like this:
<component :is='dev-chart'></component>
The JSX syntax should be:
<component is={'dev-chart'}></component>
Then the above error appears, hhhhh.
Therefore, the correct way to write it is to use createElement instead of component is, which is the price of going deep into the bottom layer.
Source: https://blog.csdn.net/kw269937519/article/details/114080530
Read More:
- [Vue warn]: Unknown custom element: <el-carousel-item> – did you register the component correctly?
- Vue error: did you register the component correctly? For.., make sure to provide the “name” option (solved)
- The Vue parent component uses ref to call the sub component method and reports an error
- Solve the problem of showing unregistered (unknown custom element) when importing components into Ant Design Pro
- Depending on the custom component jar package, unable to read meta data for class appears after startup
- [Vue warn]: Failed to resolve component vue3 import element error
- seaborn.load_ Data set error urlerror: < urlopen error [winerror 10060] the connection attempt failed because the connecting party did not reply correctly after a period of time or the connected host did not respond
- (element UI component table) how to add a style to a table
- Error: Module did not self-register
- Research on invalid modification of elementui component style
- Office 16 Click to run extensibility component uninstall
- Java uses the same event listener for the same type of component
- Not registered via @EnableConfigurationProperties or marked as Spring component
- #An error is reported by the chart map component of renfast framework
- Applet component properties error cannot read property ‘name’ of undefined
- How to Solve Win10 0x8007007E Error (OPC Component)
- The Vue project cannot use a component name that contains the word switch
- Failed to start component [standardengine [Catalina]. Standardhost [localhost]. Standardcontext
- [Vue warn]: Do not use built-in or reserved HTML elements as component id: article
- Vue3. X reports an error using vantui. Failed to resolve component: Van-**-**