Preface
Copy code
[Vue warn]: Unknown custom element: did you register the component correctly? For recursive components, make sure to provide the "name" option.
The cause of the problem is: related components are used, but not introduced
Solutions
First find the relevant code caused the error, see if there is use similar components, such as the use radio-group
and radio
assembly, but not introduced, this time above error occurs
<el-form-item label="状态:">
<el-radio-group v-model="formData.status">
<el-radio :key="item.value"
:label="item.value"
v-for="item in statusOptions" >{{item.label}}</el-radio>
</el-radio-group>
</el-form-item>
Found in the project directory main.js
, and then import {} from
introduced into related components, re- Vue.use()
use. For example:
import {
Radio,
RadioGroup,
} from 'element-ui';
Vue.use(Radio);
Vue.use(RadioGroup);
This completes the global introduction of components
Read More:
- Unknown custom element: [xxx] – did you register the component correctly…
- Vue Error compiling template: Component template should contain exactly one root element. If you
- How to Solve Error: Module did not self-register
- [Solved] element-plus Error: Failed to resolve component
- Celery Error: Did you remember to import the module containing this task?
- How to Solve Element Error: target is not existed: .page-component__scroll .el-scrollbar__wrap
- The loop of life and death occurs when the El table component of element UI is bidirectional bound
- [Solved] SyntaxError: Missing parentheses in call to ‘print‘. Did you mean print(e)?
- How to Solve Error: Element ‘dependency’ cannot have character [children], because the type’s content type is element-
- [Solved] error Component name “index“ should always be multi-word vue/multi-word-component-names
- [Solved] error“:“element click intercepted“,“message“:“element click intercepted“
- Proguard Packaging Error: You have to specify ‘-keep‘ options if you want to write out kept elements with ‘-print
- [Solved] bee must have one register DataBase alias named `default`
- Android integration of iFLYTEK’s speech recognition (voice dictation) error message “Failed to create the object, please confirm that libmsc.so is placed correctly, and createUtility is called to initialize”
- error MSB8011: Failed to register output [How to Solve]
- [Solved] Electron Error: Error: Electron failed to install correctly, please delete node_modules/electron and try
- Cocos creator custom engine NPM Error [How to Fix]
- SSM custom 404 and 500 error reporting interface
- [Solved] Vue Error: Failed to mount component: template or render function not defined
- [Solved] Maven Error: The packaging for this project did not assign a file to the build artifact