关于 Vue 使用 babel 兼容 IE 浏览器 的问题

2021-10-15 15:10:50 +08:00
 RunningDurian
现在有个项目是 必须在 某国企 用 IE 打开的,所以没办法,只能把 vue 和相关文件 转成 es2015 了,但是总会事与愿违,所以问问在座的大佬,有没有见过类似的事情

转之前:
SCRIPT1014: 无效字符 config.js (2,33)
SCRIPT1055: const 赋值 babel.min.js (1,730923) S
CRIPT1003: 缺少 ':' index.html (716,30)



转了之后:

SCRIPT7002: XMLHttpRequest: 网络错误 0x2efd, 由于出现错误 00002efd 而导致此项操作无法完成。index.html [Vue warn]: Error in created hook: "TypeError: 无法获取未定义或 null 引用的属性“markInfo”"
(found in <Root>) TypeError: 无法获取未定义或 null 引用的属性“markInfo” { [functions]: , proto: { }, description: "无法获取未定义或 null 引用的属性“markInfo”", message: "无法获取未定义或 null 引用的属性“markInfo”", name: "TypeError", number: -2146823281, stack:
"TypeError: 无法获取未定义或 null 引用的属性“markInfo” at getCustInfo (file:///G:/jt/sszj/agent_front%20-%20 副本 /index.html:846:9) at created (file:///G:/jt/sszj/agent_front%20-%20 副本 /index.html:626:9) at invokeWithErrorHandling (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:286:403) at callHook (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:558:119) at Vue.prototype._init (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:667:1) at Vue (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:672:559) at Global code (file:///G:/jt/sszj/agent_front%20-%20 副本 /index.html:620:1)" } [Vue warn]: Error in render: "ReferenceError: “userForm_1”未定义" (found in <Root>) ReferenceError: “userForm_1”未定义 { [functions]: , proto: { }, description: "“userForm_1”未定义", message: "“userForm_1”未定义", name: "ReferenceError", number: -2146823279, stack: "ReferenceError: “userForm_1”未定义 at Function code (Function code:1:12) at Vue.prototype._render (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:495:29) at updateComponent (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:532:1038) at get (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:614:89) at Watcher (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:612:272) at mountComponent (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:535:1) at Vue.prototype.$mount (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:1031:82) at Vue.prototype.$mount (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:1242:1021) at Vue.prototype._init (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:667:198) at Vue (file:///G:/jt/sszj/agent_front%20-%20 副本 /js/vue.js:672:559)" }
469 次点击
所在节点    程序员
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/808043

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX