Comments (11)
Confirmed, I got a "No SVGs found in xxx" error on Windows.
Version: 2.0.0
from fantasticon.
The bug is, that glob
requires slashes, but path.join()
creates backslashes on windows systems. In the file src/utils/assets.ts
, function loadPaths(dir)
, create globPath
as join(dir,
**/*.${ASSETS_EXTENSION}).replace(/\\/g, '/');
and it should work.
from fantasticon.
For those who want to downgrade glob but are struggling to do so (I definitely was!):
- Add
overrides
to your package.json
"dependencies": {
"fantasticon": "^2.0.0"
+ },
+ "overrides": {
+ "fantasticon": {
+ "glob": "7.2.0"
+ }
}
- run
npm uninstall fantasticon && npm install fantasticon
(According to npm/cli#4232 (comment) , you need to explicitly uninstall and reinstall fantasticon for the overrides
to work
from fantasticon.
The bug is, that
glob
requires slashes, butpath.join()
creates backslashes on windows systems. In the filesrc/utils/assets.ts
, functionloadPaths(dir)
, createglobPath
asjoin(dir,
**/*.${ASSETS_EXTENSION}).replace(/\\/g, '/');
and it should work.
I just tested this, and it fixed the issue.
from fantasticon.
The same thing is happening to me. Downgrading the version to 1.2.3 helped temporaraly.
from fantasticon.
The bug is, that
glob
requires slashes, butpath.join()
creates backslashes on windows systems. In the filesrc/utils/assets.ts
, functionloadPaths(dir)
, createglobPath
asjoin(dir,
**/*.${ASSETS_EXTENSION}).replace(/\\/g, '/');
and it should work.
I did the same! this works..
from fantasticon.
Related Issues (20)
- Icons are randomized HOT 2
- html render a black rectangle HOT 4
- Centering icons vertically inside font HOT 3
- Format-specific fontsUrl HOT 1
- Icons stylesheet should not use query-string for hash
- The preview file is not created in the .HTML format ! HOT 1
- ts literalId generate with prefix
- edit contents of scss output HOT 1
- Append new font icons to the existing web-font icon kits HOT 1
- when ı add new icon my old icon size changes HOT 1
- Flat icons are black and aren't rendered? HOT 8
- Generated icons have margin problem do you have any suggestions ? HOT 2
- Use `const enum` instead of plain `enum` HOT 1
- Strange behaviour with some svgs HOT 2
- ver 2.0.0 no SVGs found HOT 1
- Vulnerability in dependency
- Requires a prefix otherwise it adds a -? HOT 2
- Allow user to add custom DEFAULT_START_CODEPOINT as in config HOT 1
- fantasticon does not find any svg's HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fantasticon.