jameBo
V2EX  ›  Vue.js

nwjs 开发 vue 桌面 exe 遇到的问题,求帮助

  •  
  •   jameBo · Mar 17, 2021 · 3189 views
    This topic created in 2067 days ago, the information mentioned may be changed or developed.

    安装 nw-vue-devtools

    package.json 配置如下:

    {
      "chromium-orgs": "--load-extension='./node_modules/nw-vue-devtools'",
      ...
    }
    

    跑起来调试抛出了个错误:

    `Failed to load resource: net::ERR_FILE_NOT_FOUND

    chrome-extension://aoionhbkcjeelfdihgcecbjfnfpcalcg/node_modules/vue/dist/vue.js`

    cszchen
    cszchen
    Mar 17, 2021
    1
    nwjs 是 electron 的前身吧
    DonaidTrump
    DonaidTrump
    Mar 17, 2021
    2
    @cszchen 不是
    rbrkee
    rbrkee
    Mar 17, 2021
    3
    https://github.com/nwutils/nw-vue-devtools#instructions
    > 3. Vue.js must be in use in your app, and cannot be minified (vue.js not vue.min.js).
    综合你的错误信息,所以我觉得应该
    npm install vue
    jameBo
    jameBo
    OP
    Mar 17, 2021
    4
    @rbrkee 这个依赖严格来说没用了,才知道 但是我通过其他途径已经解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   934 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 21:34 · PVG 05:34 · LAX 13:34 · JFK 16:34
    ♥ Do have faith in what you're doing.