report errors
chunk-vendors.js:2128 [Vue warn]: Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the “name” option. - did you register the component correctly?For recursive components, make sure to provide the "name" option
reason
el component not registered
Solution:
1. Download elementUI
npm i element-ui -S
2. Import
Add the following three lines in main.js:
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
Done!
Read More:
- Front end initialization Vue element admin error [How to Solve]
- Vue wran name Error: Unkown custom element [How to Solve]
- [Solved] ERROR in ./node_modules/element-ui/lib/theme-chalk/fonts/element-icons.ttf
- The solution to the problem that the custom styles of UI components such as element-ui in the vue project do not take effect
- Vue Import element-plus Error: Failed to resolve import “element-pluslibtheme-chalkindex.css“ from “src
- [Solved] Vue3 Import element UI error: Uncaught TypeError: Cannot read properties of underfined…
- How to Solve Vue add element Install Error
- Vue3 + vite install element-plus error [How to Solve]
- [Solved] Custom components with click events do not work
- [vue/no-multiple-template-root] The template root requires exactly one element.
- [Solved] Deploy the front-end package online. Net:: err_SSL_PROTOCOL_ERROR
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)
- [Solved] Vue3 Configuration routing error: Catch all routes (“*“) must now be defined using a param with a custom regexp.
- Element-plus Warning: ElementPlusError: [Util] binding value must be a string or number.
- Vue3 Error: [vue/no-multiple-template-root] The template root requires exactly one element
- [Solved] Vue element UI form verification error: cannot read property ‘validate’ of undefined
- [Vue error] the solution to the template root requires exactly one element error reporting
- [Solved] Element form method Error: TypeError: Cannot read properties of undefined (reading ‘resetFields’)
- [Solved] Vue Element Date plug-in reports an error in form validation
- [Vue warn]: Invalid prop: custom validator check failed for prop “index“