Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jonashoelzel opened this issue Oct 8, 2023 · 7 comments
Closed

Comments

@jonashoelzel
Copy link

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
Copy link

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

$ dart run icon_font_generator:generate

@jonashoelzel
Copy link
Author

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

@stevenosse
Copy link

Hi
Sorry, I meant

$ dart run icon_font_generator:generator

@jonashoelzel
Copy link
Author

This is working. Thanks!

@donik1998
Copy link

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
Copy link

hanskokx commented Feb 7, 2024

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

@andreyp3054
Copy link

andreyp3054 commented Apr 5, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants