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

Web: Version and onUpgradeNeeded must be specified together #451

Closed
vixez opened this issue Oct 2, 2020 · 0 comments · Fixed by #454
Closed

Web: Version and onUpgradeNeeded must be specified together #451

vixez opened this issue Oct 2, 2020 · 0 comments · Fixed by #454
Assignees
Labels
problem An unconfirmed bug.

Comments

@vixez
Copy link

vixez commented Oct 2, 2020

Steps to Reproduce
Use boxExists on web.

It seems like boxExists is not working properly on web.
i'm getting the following error:

Error: Invalid argument(s): version and onUpgradeNeeded must be specified together
    Non-error `null` thrown by JS does not have stack trace.
Caught in Dart at:

dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 264:20  missing
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 128:24  stackTrace
dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 141:10  stackTraceForError
dart-sdk/lib/_internal/js_dev_runtime/patch/core_patch.dart 286:33            get stackTrace
dart-sdk/lib/async/zone.dart 57:29                                            defaultStackTrace
dart-sdk/lib/async/future.dart 286:31                                         error
dart-sdk/lib/indexed_db/dart2js/indexed_db_dart2js.dart 472:18                open]
packages/hive/src/backend/js/backend_manager.dart 33:28                       boxExists
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54            runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:12           _async
packages/hive/src/backend/js/backend_manager.dart 30:25                       boxExists
packages/hive/src/hive_impl.dart 236:27                                       boxExists
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54            runBody
dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 123:12           _async
packages/hive/src/hive_impl.dart 234:25                                       boxExists
packages/session_manager/src/database/database.dart 138:23                    exists
[✓] Flutter (Channel beta, 1.22.0-12.3.pre, on Mac OS X 10.15.6 19G2021, locale
    en-GB)
    • Flutter version 1.22.0-12.3.pre at
      /Users/glennruysschaert/development/flutter
    • Framework revision d408d302e2 (2 days ago), 2020-09-29 11:49:17 -0700
    • Engine revision 5babba6c4d
    • Dart version 2.10.0

 
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.0)
    • Android SDK at /Users/glennruysschaert/Library/Android/sdk
    • Platform android-30, build-tools 30.0.0
    • ANDROID_HOME = /Users/glennruysschaert/Library/Android/sdk
    • Java binary at: /Applications/Android
      Studio.app/Contents/jre/jdk/Contents/Home/bin/java
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    • All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS (Xcode 11.6)
    • Xcode at /Applications/Xcode.app/Contents/Developer
    • Xcode 11.6, Build version 11E708
    • CocoaPods version 1.9.3

[✓] Chrome - develop for the web
    • Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
    • Android Studio at /Applications/Android Studio.app/Contents
    • Flutter plugin version 49.0.2
    • Dart plugin version 193.7547
    • Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.49.1)
    • VS Code at /Applications/Visual Studio Code.app/Contents
    • Flutter extension version 3.15.0

[✓] Connected device (3 available)
    • sdk gphone x86 arm (mobile) • emulator-5554 • android-x86    • Android 11
      (API 30) (emulator)
    • Web Server (web)            • web-server    • web-javascript • Flutter
      Tools
    • Chrome (web)                • chrome        • web-javascript • Google
      Chrome 85.0.4183.121

• No issues found!
@vixez vixez added the problem An unconfirmed bug. label Oct 2, 2020
themisir added a commit that referenced this issue Oct 3, 2020
@themisir themisir assigned themisir and unassigned simc Oct 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
problem An unconfirmed bug.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants