浏览器报错 Uncaught TypeError: Cannot read property 'prototype' of undefined

  浏览器报错 Uncaught TypeError: Cannot read property 'prototype' of undefined

 

 代码报错主要是因为

浏览器报错 Uncaught TypeError: Cannot read property 'prototype' of undefined

 

 vue引用顺序不当导致的,或者是webpack打包时使用import引入vue,element却使用script引入也会出现这个问题

将vue引用放在最前面可避免这个问题。

浏览器报错 Uncaught TypeError: Cannot read property 'prototype' of undefined

 

上一篇:成功解决TypeError: ‘encoding’ is an invalid keyword argument for this function


下一篇:TypeError: Cannot read property ‘tapPromise‘ of undefined