首页 > 其他 > 详细

Vue 组件封装发布到npm 报错 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined

时间:2019-12-18 19:32:12      阅读:565      评论:0      收藏:0      [点我收藏+]

Uncaught TypeError: Cannot read property ‘toLowerCase‘ of undefined

原因是 没有导出 export default { name:"Test" }  

index.js 文件

import Test from ‘./src/main.vue‘

Test.install = function (Vue) {
Vue.component(Test.name, Test
}

export default Test

Vue 组件封装发布到npm 报错 Uncaught TypeError: Cannot read property 'toLowerCase' of undefined

原文:https://www.cnblogs.com/winyh/p/12061376.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!