-1
をlaravelフレームワーク内の1 jsのコードを書いている間、私は、vuejsに新しいです、私はエラーを取得しています:[ヴューが警告]:不明なカスタム要素
[Vue warn]: Unknown custom element: <app> - did you register the component correctly? For recursive components, make sure to provide the "name" option.
App.js
import Vue from 'vue'
import Vcinfo from './Vcinfo.vue'
import router from './router'
const app = new Vue({
el: '#vcinfo',
components: { Vcinfo },
template: '<app></app>',
router
})
を
どうすればよいですか?
あなたのテンプレートは ' が'含まれていますが、 'app'と呼ばれるコンポーネントをインポートしないでください。 –
Bert