queries.drift preventing iOS build from working? #3451
-
I'm not sure why I've started getting this error today in VSCode after months of development with the same files/layout:
Line 25 of queries.drift file is the line where I declare the first custom query after a bunch of imports:
Any idea what might have happened? Is there a way to exclude .drift files from the Xcode build process? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Uh, do you have an import for |
Beta Was this translation helpful? Give feedback.
Uh, do you have an import for
queries.drift
in a Dart file somewhere (not as a driftinclude
on a database, but an accidental Dartimport
statement to a drift file?). That would make the Dart compiler try to interpret the.drift
file as a Dart library, which could cause that error.