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

dicee-flutter is not a valid Dart package name, change to dicee_flutter (underscore, not hyphen) #10

Open
xpat opened this issue Jan 28, 2020 · 4 comments

Comments

@xpat
Copy link

xpat commented Jan 28, 2020

.../dicee-flutter$ flutter build web
Running "flutter pub get" in dicee-flutter...
Missing index.html
.../dicee-flutter$ flutter run -d chrome
This application is not configured to build on the web.
To add web support to a project, run flutter create ..
.../dicee-flutter$ flutter create .
"dicee-flutter" is not a valid Dart package name.
...
DO use `lowercase_with_underscores' for package names.
....

...appBrewery$ mv dicee-flutter/ dicee_flutter/
...dicee_flutter$ flutter create .
Recreating project ....
dicee_flutter.iml (created)
test/widget_test.dart (created)
...

Wrote 35 files.
All done!

.../dicee_flutter$ flutter run -d chrome
Launching lib/main.dart on Chrome in debug mode...
Building application for the web...

@xpat xpat changed the title dicee-flutter is not a valid Dart package name, Flutter web, missing index.html dicee-flutter is not a valid Dart package name, change to dicee_flutter (underscore, not hypen) Jan 28, 2020
@xpat xpat changed the title dicee-flutter is not a valid Dart package name, change to dicee_flutter (underscore, not hypen) dicee-flutter is not a valid Dart package name, change to dicee_flutter (underscore, not hyphen) Jan 28, 2020
@TheMuellenator
Copy link
Contributor

Interesting. Can you send me a pull request for this?

@xpat
Copy link
Author

xpat commented Feb 3, 2020

It happened again on magic-8, etc. I'm not sure how to do a pull request since the change I'm proposing is just to the name of the repository.

@iYadavVaibhav
Copy link

It worked, thanks. But why and what was wrong if the parent folder name has hyphen instead of the underscore.

Thank you.

@ac2epsilon
Copy link

Yes, quite philosofically interesting inherent bug, which guaraneed can not be solved HERE. As soon as sombody solved it, this will happen NOT here. Brute solution is to kill repo at all, but url hardwired into the course lesson. Lets put it into the folder Minus-mistake and it's sticky consequences

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

4 participants