Closed austinried closed 1 year ago
I've ran into the same issue after upgrading Flutter to 3.7.6 with super-simple provider
@riverpod
bool isAuthorized(IsAuthorizedProvider ref) => return false;
downgrading flutter to 3.7.5 fixes the issue for me
I also had a similar problem occur. When I downgraded my Flutter version from 3.7.6 to 3.7.5, the issue was resolved. It might be related to a change in the Dart version🤔
The issue isn't related to a specific sdk version. Rather changing version forcibly clears the codegen cache and restart.
You should be able work around this error by deleting the .dart_tool
folder and re-running codegen
You should be able work around this error by deleting the
.dart_tool
folder and re-running codegen
Unfortunately this does not solve the issue for me, although it appears to sometimes change the specific file that causes the error (now it's lib/models/music.dart
for example, still not a riverpod file).
Describe the bug After upgrading my project to the latest riverpod/hooks versions, I'm getting an error in build runner:
This is after changing versions from:
Weird thing is that
lib/models/settings.dart
is not a riverpod part file, nothing riverpod in it, it's part of a freezed fileTo Reproduce Sorry but I don't have a repro example for this one yet, is there anything from a log that would help?
Expected behavior No build runner errors.