V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
RunningDurian
V2EX  ›  程序员

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

  •  
  •   RunningDurian · 2021-10-15 15:10:50 +08:00 · 461 次点击
    这是一个创建于 924 天前的主题,其中的信息可能已经有所发展或是发生改变。
    现在有个项目是 必须在 某国企 用 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)" }
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2598 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 15:45 · PVG 23:45 · LAX 08:45 · JFK 11:45
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.