#Assets protocol don't access to picture

2 messages · Page 1 of 1 (latest)

twilit coyote
#

Hello , i got an error reading image with convertFileSrc() but my assetScope is really permissive

"protocol": {
        "all": false,
        "asset": true,
        "assetScope": ["**"]
 }

and i got this message in shell
asset protocol not configured to allow the path: /home/riri/.projects/wallhaven-2y1wy9.jpg
asset protocol not configured to allow the path: /home/riri/.projects/everblush.png
asset protocol not configured to allow the path: /home/riri/.projects/wallhaven-2y1wy9.jpg
asset protocol not configured to allow the path: /home/riri/.projects/everblush.png
asset protocol not configured to allow the path: /home/riri/.projects/wallhaven-2y1wy9.jpg
asset protocol not configured to allow the path: /home/riri/.projects/everblush.png
asset protocol not configured to allow the path: /home/riri/.projects/original-8c2387e54b130e1bd2bb92d72ecda23e.png
Do you know why i have this error and how to resolve it?

split pier
#

The scopes use glob patterns which on Linux and macOS don't include "dotfiles". To change that behaviour, you need to use the following configuration:

        "assetScope": {
          "allow": ["**"],
          "requireLiteralLeadingDot": false
        }