No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    @quasar/icongenie v2.3.0 released!

    Announcements
    3
    5
    445
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • rstoenescu
      rstoenescu Admin last edited by

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

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

      1 Reply Last reply Reply Quote 0
      • ssuess
        ssuess last edited by ssuess

        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?

        1 Reply Last reply Reply Quote 0
        • ssuess
          ssuess last edited by

          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

          1 Reply Last reply Reply Quote 0
          • ssuess
            ssuess last edited by

            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

            1 Reply Last reply Reply Quote 0
            • S
              senecaso last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • First post
                Last post