@quasar/icongenie v2.3.0 released!


  • Admin

    https://github.com/quasarframework/quasar/releases/tag/%40quasar%2Ficongenie-v2.3.0

    Added support for upcoming “@quasar/app” v2 projects.



  • I upgraded to this version this morning (after upgrading quasar and following the upgrade guide) and I am having problems generating icons. When I try to issue the command icongenie generate -m pwa -i app-icon.png, I get the following error:

    /usr/local/lib/node_modules/@quasar/icongenie/node_modules/sharp/lib/constructor.js:34
      throw new Error(error);
      ^
    
    Error: 
    Something went wrong installing the "sharp" module
    
    Cannot find module '../build/Release/sharp.node'
    Require stack:
    - /usr/local/lib/node_modules/@quasar/icongenie/node_modules/sharp/lib/constructor.js
    - /usr/local/lib/node_modules/@quasar/icongenie/node_modules/sharp/lib/index.js
    - /usr/local/lib/node_modules/@quasar/icongenie/lib/utils/get-files-options.js
    - /usr/local/lib/node_modules/@quasar/icongenie/lib/cmd/generate.js
    - /usr/local/lib/node_modules/@quasar/icongenie/bin/icongenie-generate
    - /usr/local/lib/node_modules/@quasar/icongenie/bin/icongenie
    
    - Run "npm rebuild --verbose sharp" and look for errors
    - Consult the installation documentation at https://sharp.pixelplumbing.com/install
    - Search for this error at https://github.com/lovell/sharp/issues
    
        at Object.<anonymous> (/usr/local/lib/node_modules/@quasar/icongenie/node_modules/sharp/lib/constructor.js:34:9)
        at Module._compile (internal/modules/cjs/loader.js:1133:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
        at Module.load (internal/modules/cjs/loader.js:977:32)
        at Function.Module._load (internal/modules/cjs/loader.js:877:14)
        at Module.require (internal/modules/cjs/loader.js:1019:19)
        at require (internal/modules/cjs/helpers.js:77:18)
        at Object.<anonymous> (/usr/local/lib/node_modules/@quasar/icongenie/node_modules/sharp/lib/index.js:3:15)
        at Module._compile (internal/modules/cjs/loader.js:1133:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1153:10)
    

    running npm rebuild --verbose sharp as suggested returns npm info ok at the end, so I assume that is ok
    I installed the latest sharp manually and that also did not fix the problem

    finally, when I do a icongenie verify it is still showing the old path of /statics/icons:

    icongenie verify                               ✔  08:13:24  
    
     VERIFYING with the following options:
     ================
     Root folder..... /Users/stephen/Documents/rproject
     Assets of....... spa | pwa
     Assets filter... none
     ================
    
     Mode SPA 
    
     ERROR: missing! - png:          src/statics/icons/favicon-128x128.png 
     ERROR: missing! - png:          src/statics/icons/favicon-96x96.png 
     ERROR: missing! - png:          src/statics/icons/favicon-32x32.png 
     ERROR: missing! - png:          src/statics/icons/favicon-16x16.png 
     ERROR: missing! - ico:          src/statics/icons/favicon.ico 
    
     Mode PWA 
    
     ERROR: missing! - png:          src/statics/icons/favicon-128x128.png 
     ERROR: missing! - png:          src/statics/icons/favicon-96x96.png 
     ERROR: missing! - png:          src/statics/icons/favicon-32x32.png 
     ERROR: missing! - png:          src/statics/icons/favicon-16x16.png 
     ERROR: missing! - ico:          src/statics/icons/favicon.ico 
     ERROR: missing! - png:          src/statics/icons/apple-icon-120x120.png 
     ERROR: missing! - png:          src/statics/icons/apple-icon-152x152.png 
     ERROR: missing! - png:          src/statics/icons/apple-icon-167x167.png 
     ERROR: missing! - png:          src/statics/icons/apple-icon-180x180.png 
     ERROR: missing! - svg:          src/statics/icons/safari-pinned-tab.svg 
     ERROR: missing! - png:          src/statics/icons/ms-icon-144x144.png 
     ERROR: missing! - png:          src/statics/icons/icon-128x128.png 
     ERROR: missing! - png:          src/statics/icons/icon-192x192.png 
     ERROR: missing! - png:          src/statics/icons/icon-256x256.png 
     ERROR: missing! - png:          src/statics/icons/icon-384x384.png 
     ERROR: missing! - png:          src/statics/icons/icon-512x512.png 
     ERROR: missing! - splashscreen: src/statics/icons/apple-launch-828x1792.png 
     ERROR: missing! - splashscreen: src/statics/icons/apple-launch-1125x2436.png 
     ERROR: missing! - splashscreen: src/statics/icons/apple-launch-1242x2688.png 
     ERROR: missing! - splashscreen: src/statics/icons/apple-launch-750x1334.png 
     ERROR: missing! - splashscreen: src/statics/icons/apple-launch-1242x2208.png 
     ERROR: missing! - splashscreen: src/statics/icons/apple-launch-640x1136.png 
     ERROR: missing! - splashscreen: src/statics/icons/apple-launch-1536x2048.png 
     ERROR: missing! - splashscreen: src/statics/icons/apple-launch-1668x2224.png 
     ERROR: missing! - splashscreen: src/statics/icons/apple-launch-1668x2388.png 
     ERROR: missing! - splashscreen: src/statics/icons/apple-launch-2048x2732.png
    

    Is the above a bug I should report, or am I missing something?



  • Ok, I solved one part of the problem: I realized that I had my /public folder at the wrong level (/src/public), and now when I icongenie verify it correctly finds my (previously generated) icons in the public (top level) folder. But I still have the sharp error when issuing the icongenie generate -m pwa -i app-icon.png command



  • Solved the second part of the problem by:
    npm -g remove @quasar/cli
    npm -g remove @quasar/icongenie
    npm -g install @quasar/icongenie
    npm -g install @quasar/cli


Log in to reply