• 请不要在回答技术问题时复制粘贴 AI 生成的内容
xxl123456
V2EX  ›  程序员

问一个 vite+vue3 打包问题

  •  
  •   xxl123456 · Aug 19, 2023 · 1767 views
    This topic created in 997 days ago, the information mentioned may be changed or developed.

    我为了兼容低版本浏览器使用了 @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 replies    2025-04-01 19:07:56 +08:00
    zedcoding
        1
    zedcoding  
       Apr 1, 2025
    楼主解决了嘛
    zedcoding
        2
    zedcoding  
       Apr 1, 2025
    解决了 在 App.vue template 套一个 div
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3412 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 12:15 · PVG 20:15 · LAX 05:15 · JFK 08:15
    ♥ Do have faith in what you're doing.