【Vueエラー解消方法】[Vue warn]: Invalid component name: “_compiled”. Component names should conform to valid custom element name in html5 specification.

エラー

[Vue warn]: Invalid component name: “_compiled”. Component names should conform to valid custom element name in html5 specification.

[Vue warn]: Invalid component name: “_scopeId”. Component names should conform to valid custom element name in html5 specification.

[Vue warn]: Invalid component name: “__file”. Component names should conform to valid custom element name in html5 specification.

[Vue warn]: Invalid component name: “_Ctor”. Component names should conform to valid custom element name in html5 specification.

原因

importもしくはcomponentsはどちらかだけで良い

<script>
import Card from '../components/Card.vue'
export default {
components: Card
}
</script>

解消方法

<script>
import Card from '../components/Card.vue'
export default {
}
</script>

コメントを残す

メールアドレスが公開されることはありません。 * が付いている欄は必須項目です