Problems after migrating from Moor to Drift #2757
-
Hi, I had a project in flutter version 3.3.10, with I executed the automatic migration as described in the docs ( Then when I run
I saw here that I should add the imports, so I did, as shown down below. After this, the build_runner doesn't show any warnings, but on the files generated by Mobx, I get an error where I use the drift classes, they are now
Here are my classes: File
File
File
I don't have the What am I missing during this upgrade? I tried Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Are you on a case-insensitive file system? It's weird that the analyzer mentions both |
Beta Was this translation helpful? Give feedback.
I'm on Windows 10. I checked the filename on explorer and it was in uppercase. I renamed to lowercase it fixed the error. Now, I only have the error with Mobx and the
InvalidType
, but I don't think that is a problem with the Drift package, since the classes are being generated correctly and before the ones from Mobx.Thank you so much.