V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
imherer
V2EX  ›  程序员

chrome 升级到 129 之后 Vue3 项目打包白屏

  •  
  •   imherer · Sep 23, 2024 · 2901 views
    This topic created in 588 days ago, the information mentioned may be changed or developed.

    升级之前 chrome 是 128 ,升级后打包后直接白屏,没有任何报错,dev 下是正常的。 前端大佬们应该如何排查呢?

    使用的是 vue3+elementplus 2.7.1

    Supplement 1  ·  Sep 23, 2024

    问题解决了

    import 'core-js/stable';
    import 'regenerator-runtime/runtime';
    
    Supplement 2  ·  Sep 23, 2024

    搞错了,我上一条append不能解决,问题的根本如4楼所说

    9 replies    2024-09-24 16:13:09 +08:00
    orangutan92
        1
    orangutan92  
       Sep 23, 2024
    看看你的配置是不是有问题
    ilemon18
        2
    ilemon18  
       Sep 23, 2024
    其他版本或者浏览器不会白屏?确认是版本的问题吗
    imherer
        3
    imherer  
    OP
       Sep 23, 2024
    @orangutan92
    @ilemon18

    129 之前都是正常的

    因为已经部署在服务器上了,上周还是正常的,今天来了就不正常了,然后看了下不正常的都是 129 版本的,我的 chrome 是 128 正常,然后我升级到 129 就白屏了。 然后换手机试了下也都能正常访问
    shintendo
        4
    shintendo  
       Sep 23, 2024   ❤️ 2


    顶层 await 的问题
    superrichman
        5
    superrichman  
       Sep 23, 2024
    就是浏览器问题,最近 chrome 源码有些 bug ,前段时间 chrome 128 某个正式版本里 electron 会崩溃。只能等更新或者降级。
    imherer
        6
    imherer  
    OP
       Sep 23, 2024
    @shintendo 这?除了等 chrome 更新还有其他办法吗?
    xfxz
        7
    xfxz  
       Sep 23, 2024
    难怪访问一些网站白屏,刚刚又升级到版本 129.0.6668.59 ,就没问题了。
    xling
        8
    xling  
       Sep 24, 2024
    确实有问题,升级后,有些页面样式在特定条件下会错乱
    zrfme
        9
    zrfme  
       Sep 24, 2024
    好像确实是有。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   981 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 47ms · UTC 23:47 · PVG 07:47 · LAX 16:47 · JFK 19:47
    ♥ Do have faith in what you're doing.