tancredi/fantasticon

fantasticon does not find any svg's

gwillegers opened this issue · 10 comments

I am completely new to fantasticon. I just installed it on Windows 11, and ran the following command:
fantasticon svg -o output

This results in the message:
No SVGs found in ./svg

If I look in the directory svg (which is a subdirectory of the current directory, where I am running the command from), there are 87 SVG files. All names end with .svg (lower case).

Why doesn't fantasticon find them?

Same problem, but in Windows 10. Previously works fine, but recent try to rebuild, raises the error.

n3pu commented

Same problem here. Any provisional solutions?

I have the same problem.

eltha9 commented

Same problem on my side,
It seems to only occuired on Windows 10 devices =/
(tested on Debian and MacOs and work fine)

(This may help fix the issue #510 )

我找到了问题,是源码的bug,其实是glob导入那被promise格式化后读取不到文件的,它的获取参数失败了。改回callback就正常了。

Same issue. Any solution?

Somebody posted a solution somewhere else. Here it is for you guys:

Paste this into you package.json. It overrides the dependency from fantasticon to glob so that it uses an older (or newer) version:

"overrides": {
    "fantasticon": {
      "glob": "7.2.0"
    }
  },

Afterwards run npm install and fantasticon should work again as expected

For yarn:

"resolutions": {
    "fantasticon/glob": "7.2.0"
}
"overrides": {
    "fantasticon": {
      "glob": "7.2.0"
    }
  },

this is not working for me...