element-ui从2.0.7升级到2.13.1版本之后,浏览器报错:
element-ui.common.js?a187:37656 Uncaught TypeError: Object(...) is not a function
at Module.eval (element-ui.common.js?a187:37656)
at __webpack_require__ (element-ui.common.js?a187:21)
at Object.eval (element-ui.common.js?a187:356)
at __webpack_require__ (element-ui.common.js?a187:21)
at eval (element-ui.common.js?a187:85)
at eval (element-ui.common.js?a187:88)
at Object.<anonymous> (app.js:5042)
at __webpack_require__ (app.js:660)
at fn (app.js:86)
at eval (420:8)

已解决。换了几个版本,2.10.1版本及以下不会有这个错。于是安装了2.10.1版本,安装之后浏览器不报错,页面也显示出来了,但页面里el-tooptip失效,查了el-tooptip失效这个问题(参考),删除掉node_modules,然后重新 npm install 之后,解决失效问题。接着我又 npm update element-ui,然后上面的浏览器报错问题也解决了。
所以问题解决办法应该是:删除node_modules,然后重新安装就可以了。