YuraDev / vue-chrome-extension-template

vue chrome extension template
MIT License
651 stars 104 forks source link

hot-reload error / wcer #17

Open roscopecoltran opened 6 years ago

roscopecoltran commented 6 years ago

Hi,

Hope you are all well !

I am working on a quick WIP based on your vue-chrome-extenstion-template and I have an error while using the dev mode and watching files.

Repository: https://github.com/sniperkit/vue-element-admin-chrome ps. you will find more details in the README.

error message:

 WAIT  Compiling...                                                                                                                                                                              7:21:55 PM

[WCER]:  Starting the Chrome Hot Plugin Reload Server...

 DONE  Compiled successfully in 865ms                                                                                                                                                            7:21:56 PM

Hash: 8718943b369340a3f939
Version: webpack 3.12.0
Time: 865ms
PublicPath: /
                             Asset       Size  Chunks                    Chunk Names
js/2.2.js.map?8718943b369340a3f939    11.3 kB       2  [emitted]
    js/0.0.js?8718943b369340a3f939      22 kB       0  [emitted]
    js/2.2.js?8718943b369340a3f939    6.52 kB       2  [emitted]
    js/3.3.js?8718943b369340a3f939    8.61 kB       3  [emitted]
    js/4.4.js?8718943b369340a3f939    5.27 kB       4  [emitted]
                      js/vendor.js    1.87 MB       5  [emitted]  [big]  vendor
                     js/content.js     347 kB       6  [emitted]  [big]  content
                  js/background.js    2.96 kB       7  [emitted]         background
                    js/manifest.js    8.66 kB       8  [emitted]         manifest
js/0.0.js.map?8718943b369340a3f939    33.3 kB       0  [emitted]
js/1.1.js.map?8718943b369340a3f939    20.8 kB       1  [emitted]
    js/1.1.js?8718943b369340a3f939    12.5 kB       1  [emitted]
js/3.3.js.map?8718943b369340a3f939    12.8 kB       3  [emitted]
js/4.4.js.map?8718943b369340a3f939    7.56 kB       4  [emitted]
                  js/vendor.js.map    2.28 MB       5  [emitted]         vendor
                 js/content.js.map     376 kB       6  [emitted]         content
              js/background.js.map  315 bytes       7  [emitted]         background
                js/manifest.js.map       6 kB       8  [emitted]         manifest
           ./pages/background.html  532 bytes          [emitted]
                     manifest.json    1.19 kB          [emitted]
         _locales/en/messages.json  358 bytes          [emitted]
      _locales/fr_FR/messages.json  454 bytes          [emitted]
       ../eadmin-extension.dev.zip    1.03 MB          [emitted]  [big]
 + 2 hidden assets
Entrypoint content [big] = js/manifest.js js/manifest.js.map js/vendor.js js/vendor.js.map js/content.js js/content.js.map
Entrypoint background [big] = js/manifest.js js/manifest.js.map js/vendor.js js/vendor.js.map js/background.js js/background.js.map
chunk    {0} js/0.0.js?8718943b369340a3f939, js/0.0.js.map?8718943b369340a3f939 20.4 kB {6}
    > [213] 26:11-62
chunk    {1} js/1.1.js?8718943b369340a3f939, js/1.1.js.map?8718943b369340a3f939 11.7 kB {6}
    > [213] 67:13-71
chunk    {2} js/2.2.js?8718943b369340a3f939, js/2.2.js.map?8718943b369340a3f939 5.43 kB {6}
    > [213] 36:13-76
chunk    {3} js/3.3.js?8718943b369340a3f939, js/3.3.js.map?8718943b369340a3f939 6.82 kB {6}
    > [213] 49:13-72
chunk    {4} js/4.4.js?8718943b369340a3f939, js/4.4.js.map?8718943b369340a3f939 3.95 kB {6}
    > [213] 56:13-71
chunk    {5} js/vendor.js, js/vendor.js.map (vendor) 1.84 MB {8} [initial]
chunk    {6} js/content.js, js/content.js.map (content) 321 kB {5} [initial] [rendered]
    > content [106]
chunk    {7} js/background.js, js/background.js.map (background) 40 bytes {5} [initial]
    > background [277]
chunk    {8} js/manifest.js, js/manifest.js.map (manifest) 0 bytes [entry] [rendered]
Child html-webpack-plugin for "pages/background.html":
    PublicPath: /
     1 asset
    Entrypoint undefined = ./pages/background.html
    chunk    {0} ./pages/background.html 542 kB [entry]
        > [0]
internal/streams/legacy.js:57
      throw er; // Unhandled stream error in pipe.
      ^

Error: read ECONNRESET
    at TCP.onread (net.js:656:25)

I am stucked as I cannot manage to have more trace info/error details, so any help/insights would be amazing.

Cheers, Rosco Pecoltran

MichaelRCruz commented 6 years ago

Hey, there. Was anyone able to find a solution to this?

MichaelRCruz commented 6 years ago

In webpack.dev.js, setting watch to false seemed to do the trick. You do lose hot reload though.

jmealo commented 5 years ago

@MichaelRCruz Hot-reload works for me on Debian-based Linux but not on OSX.

jmealo commented 5 years ago

@MichaelRCruz, if you're using nvm try nvm use 8, older versions of Node seem to work, the latest version doesn't.

nicely commented 5 years ago

Any other solution for OSX ?

mike-seekwell commented 5 years ago

On Mac OSX, using nvm 8.15.1 solved this for me. I thought installing nvm might be a pain, but it took less than 5 minutes to install it and add node 8.15.1.