drift icon indicating copy to clipboard operation
drift copied to clipboard

The argument type 'Object?' can't be assigned to the parameter type 'Expression<int>'.

Open lsfern opened this issue 6 months ago • 1 comments

an error where build_runner to generate .g.dart

Image

flutter version:3.22.3 dart version:3.4.4 drift: 2.23.1 drift_flutter: 0.2.4

lsfern avatar May 15 '25 12:05 lsfern

Need more code to reproduce this

dickermoshe avatar May 20 '25 13:05 dickermoshe

Need more code to reproduce this

I was use your example code , so you can use them to reproduce this question. But you must use same version ,Because I'm not sure which version caused it

lsfern avatar Jun 30 '25 12:06 lsfern

I was use your example code

We have lots of example code. I'm gonna need more info to help you

dickermoshe avatar Jun 30 '25 13:06 dickermoshe

Yes, please share the exact tables involved in this build so that we can try this ourselves. All the sample code on the drift website has the drift builder running on it, so it's unlikely that exact samples would cause compilation errors.

simolus3 avatar Jun 30 '25 17:06 simolus3