V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
jameBo
V2EX  ›  Vue.js

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

  •  
  •   jameBo · Mar 17, 2021 · 2709 views
    This topic created in 1867 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
        1
    cszchen  
       Mar 17, 2021
    nwjs 是 electron 的前身吧
    DonaidTrump
        2
    DonaidTrump  
       Mar 17, 2021
    @cszchen 不是
    rbrkee
        3
    rbrkee  
       Mar 17, 2021
    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
        4
    jameBo  
    OP
       Mar 17, 2021
    @rbrkee 这个依赖严格来说没用了,才知道 但是我通过其他途径已经解决了
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2997 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 15:21 · PVG 23:21 · LAX 08:21 · JFK 11:21
    ♥ Do have faith in what you're doing.