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:
- [Solved] Vue3 Import element UI error: Uncaught TypeError: Cannot read properties of underfined…
- [Solved] Vuepress Package Error: document is not defined
- How to Solve “Vue is not defined” Error
- Vue wran name Error: Unkown custom element [How to Solve]
- Error: Duplicate plugin/preset detected [How to Solve]
- [Solved] Errors: 1 http://eslint.org/docs/rules/quotes…elementUI Import Error
- [Solved] Error:Plugin/Preset files are not allowed to export objects, only functions
- Vue Import element-plus Error: Failed to resolve import “element-pluslibtheme-chalkindex.css“ from “src
- Vue3.0 error: Failed to resolve component el-form-item (el element to be unable to be displayed)
- [Solved] Vue Project Start Error: Support for the experimental syntax ‘jsx‘ isn‘t currently enabled
- Vue Error: component has been registered but not used [Two Methods to Solve]
- Vue3 + vite install element-plus error [How to Solve]
- [vue/no-multiple-template-root] The template root requires exactly one element.
- [Solved] component import error is declared in the statement of components
- [Solved] vue-roter 4 Error: Error: Invalid route component/Uncaught (in promise) Error: Invalid route component
- How to Solve Error: [Vue warn]: Missing required prop: “value”
- Vuejs composite ElementUI component library error
- Module build failed: Error: Couldn’t find preset “es2015” relative to directory
- [Solved] Vue Error: Duplicate keys detected: ‘74004’. This may cause an update error
- How to Use DOM to operate CSS