-
Notifications
You must be signed in to change notification settings - Fork 354
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
File table and dart:io File clash #2904
Comments
Thanks for the report! Unfortunately it's a bit tricky to know which import was meant because that part of the code is not set up to deal with exports correctly, but at least for |
I also ran into this issue after upgrading from 2.12.1 to 2.16.0 |
You can use the current development version of the builder until the next release (no ETA yet, sorry): dependency_overrides:
drift_dev:
git:
url: https://github.com/simolus3/drift.git
ref: develop
path: drift_dev Let me know if that fixes the issue for you. |
If I have
import 'dart:io' as io;
in the file where I define the database tables, and a table named@DataClassName("File")
then in the database.g.dart file it uses io.File instead of the File dataclass.Removing the
import 'dart:io' as io;
from database.dart resolve the issue.The text was updated successfully, but these errors were encountered: