lizhesystem
V2EX  ›  Electron

electron 打包 vue 项目后,启动加载 js 报错

  •  
  •   lizhesystem · Mar 23, 2022 · 1982 views
    This topic created in 1537 days ago, the information mentioned may be changed or developed.

    把老的 vue2 项目打包成 electron 应用

    配置啥的都整好了,包也打出来了,但是启动 app 的时候加载 js 报错:Uncaught ReferenceError:_instances is not defined ,对应的文件是一个打包过的 chunk-vendors-x 的文件。

    在浏览器项目是正常的,但是打包后就不行了,网上也找不到对应的解决方案。

    electron 用的 13.0.0 electron-builder 用的是 22.2.0

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5948 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 01:55 · PVG 09:55 · LAX 18:55 · JFK 21:55
    ♥ Do have faith in what you're doing.