-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Cannot use parse flutter sdk package due to issue with idb and senbast #1034
Comments
Thanks for opening this issue!
|
Hi! I've been experiencing the same problem when compiling an app with parse_server_sdk_flutter for web. It's not happening with windows though. Any ideas here? |
Hello, I've had the same issue, but I don't remember how I solved. Can you add minimum reproducable example? |
Hello @Litesoulo , thanks for answering.
Here I can show you a compilation for windows environment, for example:
On the contrary, here is the problem with the web option:
|
@ManuelLuRa Hello, I've just added: |
New Issue Checklist
Issue Description
i am getting this
../../AppData/Local/Pub/Cache/hosted/pub.dev/idb_shim-2.3.2/lib/src/sembast/sembast_factory.dart:97:11: Error: 'DatabaseException' is imported from both 'package:idb_shim/src/database_exception.dart' and 'package:sembast/src/api/exception.dart'.
throw DatabaseException('getDatabaseNames not supported');
^^^^^^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/idb_shim-2.3.2/lib/utils/idb_import_export.dart:9:1: Error: 'Database' is imported from both 'package:idb_shim/idb.dart' and 'package:sembast/src/api/v2/database.dart'.
import '../idb_client.dart';
^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/idb_shim-2.3.2/lib/src/sembast/sembast_factory.dart:10:1: Error: 'Database' is imported from both 'package:idb_shim/idb.dart' and 'package:sembast/src/api/v2/database.dart'.
import 'package:sembast/sembast_memory.dart';
^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dev/idb_shim-2.3.2/lib/src/sembast/sembast_factory.dart:97:11: Error: 'DatabaseException' is imported from both 'package:idb_shim/src/database_exception.dart' and 'package:sembast/src/api/exception.dart'.
throw DatabaseException('getDatabaseNames not supported');
^^^^^^^^^^^^^^^^^
heres my pubspec
description: "A new Flutter project."
The following line prevents the package from being accidentally published to
pub.dev using
flutter pub publish
. This is preferred for private packages.publish_to: 'none'
version: 1.0.0+1
environment:
sdk: ^3.6.2
dependencies:
flutter_screenutil: ^5.9.3
google_fonts: ^4.0.4
parse_server_sdk_flutter: ^9.0.0
skeletonizer: ^1.4.3
flutter:
sdk: flutter
cupertino_icons: ^1.0.8
dev_dependencies:
flutter_test:
sdk: flutter
Steps to reproduce
Running a flutter web project with the flutter package 3.27.4, import the parse sdk flutter package
Actual Outcome
that error illustrated above. it doesnt run
Expected Outcome
it is meant to run without the error.
Environment
flutter sdk 3.27.4,
dart version 3.6.2
Parse Flutter SDK
Server
Logs
The text was updated successfully, but these errors were encountered: