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
    1. Home
    2. goodwick
    G
    • Profile
    • Following 0
    • Followers 0
    • Topics 0
    • Posts 3
    • Best 1
    • Groups 0

    goodwick

    @goodwick

    1
    Reputation
    1
    Profile views
    3
    Posts
    0
    Followers
    0
    Following
    Joined Last Online

    goodwick Follow

    Best posts made by goodwick

    • RE: How to require node addon(c++) in a quasar electron project

      Adding it to externals, for me, required putting the following inside chainWebpack under build in quasar.conf.js

        chain.externals({
       'sharp': 'commonjs sharp'
       })
      
      posted in Help
      G
      goodwick

    Latest posts made by goodwick

    • RE: How to require node addon(c++) in a quasar electron project

      Adding it to externals, for me, required putting the following inside chainWebpack under build in quasar.conf.js

        chain.externals({
       'sharp': 'commonjs sharp'
       })
      
      posted in Help
      G
      goodwick
    • RE: How to require node addon(c++) in a quasar electron project

      Anyone else reading might be helped by the following thread;
      https://github.com/lovell/sharp/issues/2646

      In my case, sharp needed to be configured in webpack’s externals, but quasar’s abstraction was a bit hard to navigate since most instructions expect a webpack.config file. The above helped me a lot, even though it may seem simple.

      posted in Help
      G
      goodwick
    • RE: How to require node addon(c++) in a quasar electron project

      @cppgohan

      Did you do anything else? I’m having the same issue with sharp and adding those lines simply gave me the same error with a different filename;

      Error: The specified module could not be found.
      node_modules\sharp\build\Release/sharp.node
      

      Even though that file definitely exists at that location.

      posted in Help
      G
      goodwick