如果你在做前端時(shí),發(fā)現(xiàn)圖表在瀏覽器顯示時(shí),瀏覽器控制臺警告為:Failed to resolve component: xxx
If this is a native custom element, make sure to exclude it from component resolution via compilerOptions.isCustomElement.
中文翻譯為:未能解析組件:xxxx如果這是一個(gè)本地自定義的元素,請確保從組件解析中排除他
原因:
這個(gè)組件沒有進(jìn)行注冊
解決:
1.setup 拼寫錯(cuò)誤
例子:
應(yīng)改改為:setup? 多多注意單詞拼寫
2.引用某些組件時(shí)沒有加花括號
正確寫法
3.components 多寫 或者 忘記加括號文章來源:http://www.zghlxwxcb.cn/news/detail-758250.html
文章來源地址http://www.zghlxwxcb.cn/news/detail-758250.html
到了這里,關(guān)于[前端]瀏覽器警告:Failed to resolve component: xxxIf this is a native custom element, make sure to exclude的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!