V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
xxl123456
V2EX  ›  程序员

问一个 vite+vue3 打包问题

  •  
  •   xxl123456 · 2023-08-19 12:40:30 +08:00 · 1051 次点击
    这是一个创建于 591 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我为了兼容低版本浏览器使用了 @vitejs/plugin-legacy 这个插件, 现在低版本是可以了, 但是高版本不可以了,高版本报 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'nextSibling') at static/html/assets/index-legacy-3b996206.js:1 这个错, 不使用 @vitejs/plugin-legacy 在高版本就可以,但是在低版本就不行

    2 条回复    2025-04-01 19:07:56 +08:00
    zedcoding
        1
    zedcoding  
       6 小时 5 分钟前
    楼主解决了嘛
    zedcoding
        2
    zedcoding  
       4 小时 55 分钟前
    解决了 在 App.vue template 套一个 div
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2428 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 20ms · UTC 16:03 · PVG 00:03 · LAX 09:03 · JFK 12:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.