vue3 & element-plus Project Error:
Failed to resolve component: el-form If this is a native custom element, make sure to exclude it Failed to resolve component: el-form If this is a native custom element, make sure to exclude it Failed to resolve component el-form-item Failed to resolve component Descriptions Component inside <Transition> renders non-element root node that cannot be animated.
Reason:
On-demand introduction of element
Solution:
1. Enter in the page script
import { ElForm } from "element-plus";
2. Add commonly used ones to element-plus files
import {
ElForm,
}
const components = [
ElForm,
]
Done!
Read More:
- Vue Error compiling template: Component template should contain exactly one root element. If you
- [How to Solve Vue warn]: Unknown custom element: did you register the component correctly?
- Solution of Vue router loading components on demand
- Unknown custom element: [xxx] – did you register the component correctly…
- Vue3 Warning: [Vue warn]: Extraneous non-emits event listeners (changeParentProps) were passed to component
- Vue Import Baidu map error: BMap is not defined, eslint BMap reports an error
- [Solved] TypeError: Cannot read property ‘indexOf‘ of undefined at VueComponent.resetFields
- [Solved] Vscode Error: “export ‘default‘ (imported as ‘VueRouter‘) was not found in ‘vue-router‘
- [Solved] vue.runtime.esm.js?2b0e:619 [Vue warn]: Error in render: “TypeError: Cannot read property ‘length‘
- Angularjs1 exception error:[$injector:unpr]
- [Solved] Vue Error: Failed to mount component: template or render function not defined
- The use of vue-echarts and compilation error solutions
- [Solved] ORA-21525: attribute number or (collection element at index) string violated its constraints
- [Solved] selenium.common.exceptions.WebDriverException: Message: An unknown server-side error
- maven Error: Element ‘dependency’ cannot have character [children], because the type’s content type is
- TypeError: ‘WebElement’ object is not iterable error
- Android studio Error:Execution failed for task ‘: app:transformResourcesWithMergeJavaResForDebug ‘
- Nginx: How to Use Error_Page
- [Solved] spring boot security Start Error: ‘login.html?error‘ is not a valid redirect URL