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

哪位老哥 diao 大,开发过企业微信的自建 h5 应用的

  •  
  •   lastisee · 2021-04-08 17:20:00 +08:00 · 2803 次点击
    这是一个创建于 1085 天前的主题,其中的信息可能已经有所发展或是发生改变。

    Taro 编译的 h5 应用,在企业微信 Windows 端打不开,怀疑是自带浏览器不支持 es6,但是在 console 里面输入 let ,箭头函数,promise 又都不报错。console 报的错误是 RuntimeErrorFooter.js?f63a:91 Uncaught ReferenceError: RuntimeErrorFooter is not defined, 就这一句错误信息,没有其他的了,baidu,google 都没找到解决办法,有老哥遇到过的吗?

    14 条回复    2021-05-25 17:35:34 +08:00
    kincaider
        1
    kincaider  
       2021-04-08 18:16:24 +08:00   ❤️ 1
    diao 大 没开发过
    sanmuisme
        2
    sanmuisme  
       2021-04-08 18:20:04 +08:00   ❤️ 1
    diao 是大 但是没开发过
    fengxianqi
        3
    fengxianqi  
       2021-04-08 18:42:38 +08:00
    Footer is not defined, 全局搜一下 Footer,看有没哪个地方用了这个变量
    weimo383
        4
    weimo383  
       2021-04-08 18:43:56 +08:00 via Android
    设置 es5 不行吗
    lastisee
        5
    lastisee  
    OP
       2021-04-08 19:39:25 +08:00
    @weimo383
    @fengxianqi
    @sanmuisme
    @kincaider
    解决了,我之前一直是内网穿透的 vscode 本地跑的项目,报错信息就那一条,我刚刚打包出来放在 nginx 上面,报错信息就明显了,是 Object.entries is not a function 这个问题,然后安装 babel-polyfill,在 app.js 头部引入就好了,import ‘babel-polyfill',原文来自 https://blog.csdn.net/gwdgwd123/article/details/95368444
    godblessumilk
        6
    godblessumilk  
       2021-04-08 21:33:33 +08:00 via Android
    我 diao 大个锤子,下次可以尝试用 ie6 调试,保证一片红一堆惊喜
    DigitalHarace
        7
    DigitalHarace  
       2021-04-09 10:22:27 +08:00
    不要用跨端的 taro,正常的 vue,react 都能正常用,支持 es6 的
    uyoungco
        8
    uyoungco  
       2021-04-09 13:17:03 +08:00
    看到小程序框架,我就害怕
    jmyz0455
        9
    jmyz0455  
       2021-04-09 13:33:10 +08:00
    客户端里面的页面?
    lastisee
        10
    lastisee  
    OP
       2021-04-09 17:42:55 +08:00
    @DigitalHarace 我们是想手机也能用,antd 的话,选日期这些,不方便
    lastisee
        11
    lastisee  
    OP
       2021-04-09 17:43:24 +08:00
    @jmyz0455 就是企业微信里面的自建应用,绑定一个 h5 应用主页地址那种
    DigitalHarace
        12
    DigitalHarace  
       2021-04-10 11:50:38 +08:00 via iPhone
    @lastisee 移动端 vant 呀
    lastisee
        13
    lastisee  
    OP
       2021-04-12 10:08:38 +08:00
    @DigitalHarace 我们是用 react 。。。。
    shilianmlxg
        14
    shilianmlxg  
       2021-05-25 17:35:34 +08:00
    我们用的原生 react,不是 taro 。没这问题.....
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4911 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 09:52 · PVG 17:52 · LAX 02:52 · JFK 05:52
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.