在main.js 引入
import from 'lodash'
console.log()
支付宝开发者工具提示
TypeError: Cannot read property 'prototype' of undefined
at runInContext (vendor.js:10234)
at Object.<anonymous> (vendor.js:25893)
at Object.<anonymous> (vendor.js:25912)
at Object.node_modulesLodashLodashJs (vendor.js:25915)
at webpack_require (runtime.js:89)
at Object.<anonymous> (vendor.js:28991)
at Object.srcMainJs (vendor.js:29044)
at webpack_require (runtime.js:89)
at checkDeferredModules (runtime.js:46)
at Array.webpackJsonpCallback [as push] (runtime.js:33)
2 个回复
1***@qq.com - 开发者
同志解决没有,我也有同样的疑问
1***@qq.com - 菜鸟
暂时在 manifest 添加配置
"mp-weixin" : {
"setting" : {
"es6" : false
}
}