Replies: 2 comments 2 replies
-
You are probably pulling a dart:ui class transitively into one of your DB classes. Find this line in your project and trace the imports: |
Beta Was this translation helpful? Give feedback.
0 replies
-
Do any other drift_dev cli commands work. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
➜ dart run drift_dev make-migrations
Building package executable...
Built drift_dev:drift_dev.
Unhandled exception:
IsolateSpawnException: Unable to spawn isolate: ../../flutter/packages/flutter/lib/src/foundation/binding.dart:18:8: Error: Dart library 'dart:ui' is not available on this platform.
import 'dart:ui' as ui show Brightness, PlatformDispatcher, SingletonFlutterWindow, window;
^
Context: The unavailable library 'dart:ui' is imported through these packages:
then lists a url encoded list of every file its looking at.
It was working a couple months ago and we've had some changes to our codebase but not so much to the database corner of the code. Curious what could have triggered this. Any help appreciated.
here is our dependencies from pubspec.yaml:
Thanks
Beta Was this translation helpful? Give feedback.
All reactions