Skip to content
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

When running getserver, the server can't connect to mongodb? #53

Closed
rambozzang opened this issue Jun 8, 2021 · 2 comments
Closed

When running getserver, the server can't connect to mongodb? #53

rambozzang opened this issue Jun 8, 2021 · 2 comments

Comments

@rambozzang
Copy link

rambozzang commented Jun 8, 2021

When running getserver, the server can't connect to mongodb?

use mongo_dart: ^0.7.0+2

error: Error: Not found: 'dart:ui'

lib/main.dart: Warning: Interpreting this as package URI, 'package:mon_server/main.dart'.
../../flutter/packages/flutter/lib/src/foundation/basic_types.dart:9:1: Error: Not found: 'dart:ui'
export 'dart:ui' show VoidCallback;
^
../../flutter/packages/flutter/lib/src/foundation/binding.dart:8:8: Error: Not found: 'dart:ui'
import 'dart:ui' as ui show SingletonFlutterWindow, Brightness, PlatformDispatcher, window;
^
../../flutter/packages/flutter/lib/src/foundation/debug.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' as ui show Brightness;
^
../../flutter/packages/flutter/lib/src/foundation/key.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show hashValues;
^
../../flutter/packages/flutter/lib/src/foundation/stack_frame.dart:5:8: Error: Not found: 'dart:ui'
import 'dart:ui' show hashValues;
^
../../flutter/packages/flutter/lib/src/foundation/binding.dart:100:3: Error: Type 'ui.SingletonFlutterWindow' not found.
ui.SingletonFlutterWindow get window => ui.window;
^^^^^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/foundation/binding.dart:121:3: Error: Type 'ui.PlatformDispatcher' not found.
ui.PlatformDispatcher get platformDispatcher => ui.PlatformDispatcher.instance;
^^^^^^^^^^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/foundation/change_notifier.dart:68:20: Error: Type 'VoidCallback' not found.
void addListener(VoidCallback listener);
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/foundation/change_notifier.dart:72:23: Error: Type 'VoidCallback' not found.
void removeListener(VoidCallback listener);
^^^^^^^^^^^^
../../flutter/packages/flutter/lib/src/foundation/change_notifier.dart:106:8: Error: Type 'VoidCallback' not found.
List<VoidCallback?> _listeners = List<VoidCallback?>.filled(0, null);
^^^^^^^^^^^^

@jonataslaw
Copy link
Owner

Remove these lines from your pubspec

  flutter:
    sdk: flutter

@rambozzang
Copy link
Author

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants