g-u-c / guc-desktop

Git-Utopian-Contributor desktop app using Quasar and Electron
MIT License
5 stars 2 forks source link

Fail build on Ubuntu 18.04 #2

Closed DrSensor closed 6 years ago

DrSensor commented 6 years ago

Environment

After the build process, it also opens up http://127.0.0.1:8888/ in my browser :thinking:

> yarn build:electron

yarn run v1.9.4
$ quasar build -m electron

 Build mode........ electron
 Quasar theme...... mat
 Quasar CLI........ v0.17.19
 Quasar Framework.. v0.17.16
 Debugging......... no

 app:quasar-conf Reading quasar.conf.js +0ms
 app:webpack Chaining Renderer process Webpack config +13s
 app:webpack Chaining Main process Webpack config +29ms
 app:webpack Extending Main process Webpack config +1ms
 app:artifacts Cleaned build artifact: "/home/wildan/Projects/OSS/@guc/guc-desktop/dist/electron-mat" +12ms
 app:generator Generating Webpack entry point +4ms
 app:build Building... +4ms

  Renderer process █████████                 building modules [35%] 210/231 modules 21 active
  Main process     █████████████████████████ [100%] in ~15s

  Renderer process █████████████████████████ [100%] in ~39s
  Main process     █████████████████████████ [100%] in ~15s

 app:artifacts Added build artifact "/home/wildan/Projects/OSS/@guc/guc-desktop/dist/electron-mat" +39s

Version: webpack 4.19.1
Time: 38690ms
Built at: 09/20/2018 4:42:34 PM
                                         Asset       Size  Chunks             Chunk Names
                                       js/2.js  846 bytes       2  [emitted]
           fonts/KFOlCnqEu92Fr1MmEU9fBBc-.woff   19.5 KiB          [emitted]
fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2   53.8 KiB          [emitted]
                      fonts/fa-brands-400.woff   73.2 KiB          [emitted]
           fonts/KFOlCnqEu92Fr1MmWUlfBBc-.woff   19.4 KiB          [emitted]
                     fonts/fa-brands-400.woff2   62.6 KiB          [emitted]
                     fonts/fa-regular-400.woff   17.7 KiB          [emitted]
            fonts/KFOkCnqEu92Fr1MmgVxIIzQ.woff   19.5 KiB          [emitted]
           fonts/KFOlCnqEu92Fr1MmSU5fBBc-.woff   19.4 KiB          [emitted]
           fonts/KFOlCnqEu92Fr1MmYUtfBBc-.woff   19.5 KiB          [emitted]
               fonts/KFOmCnqEu92Fr1Mu4mxM.woff   19.4 KiB          [emitted]
                    fonts/fa-regular-400.woff2   14.5 KiB          [emitted]
       fonts/flUhRq6tzZclQEJ-Vdg-IuiaDsNa.woff   70.6 KiB          [emitted]
                      fonts/fa-solid-900.woff2     61 KiB          [emitted]
                                     js/app.js    170 KiB       0  [emitted]  app
                                       js/1.js   1.31 KiB       1  [emitted]
                       fonts/fa-solid-900.woff   78.6 KiB          [emitted]
                                       js/3.js     12 KiB       3  [emitted]
                                  js/vendor.js    311 KiB       4  [emitted]  vendor
                    statics/guc-logo-64x64.png   6.29 KiB          [emitted]
               statics/icons/favicon-32x32.png   2.54 KiB          [emitted]
               statics/icons/favicon-16x16.png   1.32 KiB          [emitted]
                statics/icons/icon-128x128.png   7.03 KiB          [emitted]
          statics/icons/apple-icon-152x152.png   12.8 KiB          [emitted]
                statics/icons/icon-192x192.png   10.3 KiB          [emitted]
                statics/icons/icon-256x256.png   14.7 KiB          [emitted]
                       statics/quasar-logo.png   7.03 KiB          [emitted]
             statics/icons/ms-icon-144x144.png     12 KiB          [emitted]
                statics/icons/icon-384x384.png   22.7 KiB          [emitted]
                statics/icons/icon-512x512.png     29 KiB          [emitted]
                    statics/icon-prototype.png    342 KiB          [emitted]
                                    index.html  648 bytes          [emitted]
Entrypoint app = js/vendor.js js/app.js

Version: webpack 4.19.1
Time: 14921ms
Built at: 09/20/2018 4:42:10 PM
           Asset      Size  Chunks             Chunk Names
electron-main.js  4.88 KiB       0  [emitted]  electron-main
    package.json  1.08 KiB          [emitted]
Entrypoint electron-main = electron-main.js

 app:spawn Running "yarn install --production" +22ms

(node:32637) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
info No lockfile found.
[1/5] Validating package.json...
error guc-desktop@0.1.0: The engine "yarn" is incompatible with this module. Expected version ">= 1.6.0".
error Found incompatible module
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Webpack Bundle Analyzer is started at http://127.0.0.1:8888
Use Ctrl+C to close it

 app:spawn Command "yarn" failed with exit code: 1 +0ms
 app:electron ⚠️  [FAIL] yarn failed installing dependencies +0ms
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

If preferable, I can submit this issue on quasar repo after the hackathon is over :slightly_smiling_face:

nothingismagick commented 6 years ago

"After the build process, it also opens up http://127.0.0.1:8888/ in my browser 🤔" => this is because of the

  analyze: true

flag in quasar.conf.js. I use it to inspect package size on project build. Is this still an issue, or has it been resolved since you updated yarn?

DrSensor commented 6 years ago

I solve the build by removing "yarn": ">= 1.6.0" (weird :thinking: ) https://github.com/g-u-c/guc-desktop/pull/6/files#diff-b9cfc7f2cdf78a7f4b91a753d10865a2

Ah yes, just knew it now that http://127.0.0.1:8888/ is showing bundle analysis report :open_mouth: