-
Notifications
You must be signed in to change notification settings - Fork 388
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
hive_generator doesn't generate *.g.dart files using super-parameters feature #1009
Comments
I think this is because you used a feature from Dart 2.17 while your environment’s min version is lower than 2.17. In your environment:
sdk: '>=2.17.1 <3.0.0' |
I've actually changed my environment's min version to 2.17.5. Just forgot to add the print to the issue, sorry. But anyway, here's the print to prove it |
Maybe try |
Hi all, We have the same problem as @GabrielCR99. |
Unfortunately, untill any collaborator see this issue or knows any way to solve it, the way is to not use super-parameters feature, which is kinda sad because this is such an interesting feature and helps to reduce code |
I had the same problem and removing the pubspeck.lock and launching again the command |
I had the same problem, I upgraded my hive and hive_flutter package to the latest version and remove the pubspec.lock file, and then run a flutter pub get. After that, I just run flutter packages pub run build_runner build, and allright! |
It seems like deleting pubspeck.lock or even upgrading build_runner on the project's pubspec.yaml solve this issue. I'll close it since I also solved the problem! |
its wierd but atleast it works! |
Steps to Reproduce
Code sample
Version
The text was updated successfully, but these errors were encountered: