ScerIO / icon_font_generator

☣️ Flutter Icon Font Generator
https://pub.dev/packages/icon_font_generator
Other
96 stars 50 forks source link

Error when running the generator: `bin/generate.dart` does not exists #36

Closed jonashoelzel closed 8 months ago

jonashoelzel commented 8 months ago

When running dart run icon_font_generator:generate I get this error:

Could not find `bin/generate.dart` in package `icon_font_generator`.

The file bin/generate.dart exists in ~/.pub-cache/hosted/pub.dev/icon_font_generator-4.0.0/

How can I fix this? (I'm on a Mac)

stevenosse commented 8 months ago

Hey I had the same issue. It worked using "generator" instead of "generate":

$ dart run icon_font_generator:generate
jonashoelzel commented 8 months ago

Thanks for the response, but I think your command is the exact same as mine. It still does not work for me.

stevenosse commented 8 months ago

Hi Sorry, I meant

$ dart run icon_font_generator:generator
jonashoelzel commented 8 months ago

This is working. Thanks!

donik1998 commented 7 months ago

Guys need a fix in docs.

$ flutter pub add --dev icon_font_generator

# And it's ready to go:
$ flutter pub run icon_font_generator:generate <input-svg-dir> <output-font-file> [options]

Second command doesn't work. Need to fix a typo in generate. It should be generator instead. So, it is gonna be

flutter pub run icon_font_generator:generator <input-svg-dir> <output-font-file> [options]
hanskokx commented 4 months ago

Even with the generator, I'm still getting this issue on v3.2.0.

andreyp3054 commented 3 months ago

Can you please change the command in README.MD to this dart run icon_font_generator:generator