【Vue开发】_vue2.default.prototype报错找不到
报错:报Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype’)。打开路由懒加载,在.env.development文件(没有就新建)中添加。vue版本2.x已正确安装。
·
Vue.prototype找不到
if ( true && (typeof Int8Array === 'undefined' ? 'undefined' : _typeof(Int8Array)) !== 'object' && (_vue2.default.prototype.$isServer || typeof document.childNodes !== 'function')) {
exports.isFunction = isFunction = function isFunction(obj) {
return typeof obj === 'function' || false;
};
}
报错:报Uncaught TypeError: Cannot read properties of undefined (reading ‘prototype’)。
vue版本2.x已正确安装
解决方案
打开路由懒加载,在.env.development文件(没有就新建)中添加
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。
更多推荐

所有评论(0)