Vue3报错:Failed to resolve component: xxx
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
Translation: Failed to resolve component: xxx
If this is a native custom element, make sure to exclude it from component resolution via compiler Options.is Custom Element.
I found a lot of blogs on the Internet, but none of them solved the problem. Finally, I found that the setup did not add
<script setup>
reference:
There are many reasons for this error on the Internet because the import is not written correctly .
For example , it is import xx from '路径'
written import {xx} from '路径'
because the method of importing components and importing components is confused.