Open BrijalKothari opened 3 weeks ago
This appears to be similar to https://github.com/simolus3/drift/issues/3168 and https://github.com/simolus3/drift/issues/3163.
Basically, it looks like your code has been generated by drift_dev
version 2.20.0
but is running against drift
version 2.19.x
. I don't exactly understand how that's possible since drift_dev
has a dependency on the same minor drift version, but I think you can fix it by either:
drift_dev
version 2.20.x
and re-running build_runner build
to generate code compatible with drift
version 2.19.x
.drift
to 2.20.0
and keeping the generated code unchanged.This is possible if database code is in the local package.
My main app resolves its drift_dev version to 2.19.1 until I forcefully run pub get despite my package using 2.20.1. In my case it couldn't update drift_dev version automatically as some other package depends on web <0.6.0.
App:
Package:
I am using drift: ^2.19.1+1 and drift_dev: ^2.19.1 version i get below given error