zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.23k stars 613 forks source link

Required named parameter 'parserFn' must be provided #1029

Closed Achudh closed 2 years ago

Achudh commented 2 years ago

Describe the issue initialData: observableQuery?.latestResult ?? QueryResult.loading(), in does not have Required named parameter 'parserFn' must be provided

To Reproduce (MUST BE PROVIDED)

To help us to understand what is going on and what is the easy way to resolve this bug we ask to describe the issue with a small code example, or if the problem is easy you can describe the issue as follows:

  1. When I use 'flutter build apk' to try 'building the app'
  2. I receive the following errors please check stack trace below

Expected behavior Should build apk

device / execution context MacOS Monterey on m1 mac mini, Build agent - MacOS Monterey on m1 mac mini

Other useful/optional fields

Please fill or delete these sections if you don't fill them in

Stacktrace: [+8803 ms] > Task :app:compileFlutterBuildRelease [ +9 ms] /opt/homebrew/Caskroom/flutter/2.8.0/flutter/.pub-cache/hosted/pub.dartlang.org/graphql_flutter-5.0.0/lib/src/widgets/query.dart:79:72: Error: Required named parameter 'parserFn' must be provided. [ +9 ms] initialData: observableQuery?.latestResult ?? QueryResult.loading(), [ ] ^ [ ] /opt/homebrew/Caskroom/flutter/2.8.0/flutter/.pub-cache/hosted/pub.dartlang.org/graphql-5.0.1-beta.6/lib/src/core/query_result.dart:58:11: Context: Found this candidate, but the arguments don't match. [ +2 ms] factory QueryResult.loading({ [ ] ^^^^^^^ [ ] /opt/homebrew/Caskroom/flutter/2.8.0/flutter/.pub-cache/hosted/pub.dartlang.org/graphql_flutter-5.0.0/lib/src/widgets/subscription.dart:166:35: Error: Required named parameter 'parserFn' must be provided. [ ] ? QueryResult.optimistic( [ ] ^ [ ] /opt/homebrew/Caskroom/flutter/2.8.0/flutter/.pub-cache/hosted/pub.dartlang.org/graphql-5.0.1-beta.6/lib/src/core/query_result.dart:68:11: Context: Found this candidate, but the arguments don't match. [ ] factory QueryResult.optimistic({ [ ] ^^^^^^^^^^ [ ] /opt/homebrew/Caskroom/flutter/2.8.0/flutter/.pub-cache/hosted/pub.dartlang.org/graphql_flutter-5.0.0/lib/src/widgets/subscription.dart:169:32: Error: Required named parameter 'parserFn' must be provided. [ ] : QueryResult.loading(), [ ] ^ [ ] /opt/homebrew/Caskroom/flutter/2.8.0/flutter/.pub-cache/hosted/pub.dartlang.org/graphql-5.0.1-beta.6/lib/src/core/query_result.dart:58:11: Context: Found this candidate, but the arguments don't match. [ ] factory QueryResult.loading({ [ ] ^^^^^^^ [+7043 ms] > Task :app:compileFlutterBuildRelease FAILED [ ] Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. [ ] Use '--warning-mode all' to show the individual deprecation warnings. [ ] See https://docs.gradle.org/7.0.2/userguide/command_line_interface.html#sec:command_line_warnings [ ] 1 actionable task: 1 executed [ ] FAILURE: Build failed with an exception. [ ] * Where: [ ] Script '/opt/homebrew/Caskroom/flutter/2.8.0/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 1070 [ ] * What went wrong: [ ] Execution failed for task ':app:compileFlutterBuildRelease'. [ ] > Process 'command '/opt/homebrew/Caskroom/flutter/2.8.0/flutter/bin/flutter'' finished with non-zero exit value 1 [ ] * Try: [ ] Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights. [ ] * Get more help at https://help.gradle.org [ ] BUILD FAILED in 15s [ +438 ms] Running Gradle task 'assembleRelease'... (completed in 16.6s) [ +19 ms] "flutter apk" took 18,348ms. [ +6 ms] Gradle task assembleRelease failed with exit code 1 [ ] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3) #1 AndroidGradleBuilder.buildGradleApp (package:flutter_tools/src/android/gradle.dart:400:9) #2 AndroidGradleBuilder.buildApk (package:flutter_tools/src/android/gradle.dart:179:5) #3 BuildApkCommand.runCommand (package:flutter_tools/src/commands/build_apk.dart:108:5) #4 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1140:27) #5 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #6 CommandRunner.runCommand (package:args/command_runner.dart:209:13) #7 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9) #8 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #9 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5) #10 run.. (package:flutter_tools/runner.dart:62:9) #11 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19) #12 main (package:flutter_tools/executable.dart:94:3) ```dart ```

screenshots Screenshot 2022-02-03 at 3 51 04 PM Screenshot 2022-02-03 at 3 50 56 PM

additional context

additional notes Did you struggle to understand the docs or examples, or dislike the current api?

If you want to troubleshoot or discuss in real time, consider coming to the support channel in the discord

budde377 commented 2 years ago

Please try and fixate the version of graphql by adding the graphql: 5.0.0 to your dependencies

Achudh commented 2 years ago

l: 5.0.0 t

No it didn't work

budde377 commented 2 years ago

Please ensure that you've ran pub get after the change.

Can you share your pubspec.yaml and pubspec.lock files, please

Achudh commented 2 years ago

Please ensure that you've ran pub get after the change.

Can you share your pubspec.yaml and pubspec.lock files, please

Yes I've done what you said but still.

Pubspec.yml ``` name: myapp description: A new Flutter project. # The following line prevents the package from being accidentally published to # pub.dev using `pub publish`. This is preferred for private packages. publish_to: "none" # Remove this line if you wish to publish to pub.dev # The following defines the version and build number for your application. # A version number is three numbers separated by dots, like 1.2.43 # followed by an optional build number separated by a +. # Both the version and the builder number may be overridden in flutter # build by specifying --build-name and --build-number, respectively. # In Android, build-name is used as versionName while build-number used as versionCode. # Read more about Android versioning at https://developer.android.com/studio/publish/versioning # In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion. # Read more about iOS versioning at # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html version: 0.0.2+1 environment: sdk: ">=2.12.0 <3.0.0" dependencies: badges: ^2.0.1 cached_network_image: ^3.1.0 cloudinary_sdk: ^3.0.1+7 csc_picker: git: url: https://github.com/Achudh/csc_picker.git cupertino_icons: ^1.0.2 device_info_plus: ^3.2.1 device_preview: ^1.0.0 dio: ^4.0.4 dropdown_search: ^2.0.0 feedback: ^2.4.0 file_picker: ^4.2.8 flutter: sdk: flutter flutter_appauth: ^2.2.0 flutter_chat_ui: ^1.5.3 flutter_inappwebview: ^5.0.2 flutter_launcher_icons: ^0.9.2 flutter_lints: ^1.0.4 flutter_native_image: ^0.0.6+1 flutter_native_splash: ^1.2.0 flutter_quill: ^2.0.21 flutter_secure_storage: ^5.0.2 flutter_signin_button: ^2.0.0 flutter_slidable: ^1.1.0 flutter_svg: ^0.22.0 fluttertoast: ^8.0.8 font_awesome_flutter: ^9.1.0 google_fonts: ^2.1.0 graphql_flutter: 5.0.0 html: ^0.15.0 http: ^0.13.4 image_cropper: ^1.4.1 image_picker: ^0.8.3 intl: ^0.17.0 lint: ^1.7.2 lints: ^1.0.1 modal_bottom_sheet: ^2.0.0 modal_progress_hud_alt: ^1.0.0 multi_select_flutter: ^4.0.0 open_file: ^3.2.1 package_info_plus: ^1.3.0 percent_indicator: ^3.0.1 persistent_bottom_nav_bar: ^4.0.2 provider: ^6.0.2 pull_to_refresh: ^2.0.0 rename: ^1.3.1 responsive_builder: ^0.4.1 searchfield: ^0.5.6 share_plus: ^2.1.4 steps_indicator: ^1.3.0 url_launcher: ^6.0.10 uuid: ^3.0.5 video_player: ^2.2.5 vm_service: ^8.1.0 dev_dependencies: flutter_test: sdk: flutter flutter_icons: android: "launcher_icon" ios: true image_path: "assets/images/logo.png" flutter_native_splash: color: "#ffffff" image: assets/images/logo.jpg android_gravity: center ios_content_mode: center web_image_mode: center fullscreen: true # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec # The following section is specific to Flutter. flutter: # The following line ensures that the Material Icons font is # included with your application, so that you can use the icons in # the material Icons class. uses-material-design: true # To add assets to your application, add an assets section, like this: assets: - assets/ - assets/images/ # An image asset can refer to one or more resolution-specific "variants", see # https://flutter.dev/assets-and-images/#resolution-aware. # For details regarding adding assets from package dependencies, see # https://flutter.dev/assets-and-images/#from-packages # To add custom fonts to your application, add a fonts section here, # in this "flutter" section. Each entry in this list should have a # "family" key with the font family name, and a "fonts" key with a # list giving the asset and other descriptors for the font. For # example: # fonts: # - family: Schyler # fonts: # - asset: fonts/Schyler-Regular.ttf # - asset: fonts/Schyler-Italic.ttf # style: italic # - family: Trajan Pro # fonts: # - asset: fonts/TrajanPro.ttf # - asset: fonts/TrajanPro_Bold.ttf # weight: 700 # # For details regarding fonts from package dependencies, # see https://flutter.dev/custom-fonts/#from-packages ```
Pub spec lock ```yml # Generated by pub # See https://dart.dev/tools/pub/glossary#lockfile packages: _fe_analyzer_shared: dependency: transitive description: name: _fe_analyzer_shared url: "https://pub.dartlang.org" source: hosted version: "31.0.0" analyzer: dependency: transitive description: name: analyzer url: "https://pub.dartlang.org" source: hosted version: "2.8.0" archive: dependency: transitive description: name: archive url: "https://pub.dartlang.org" source: hosted version: "3.1.11" args: dependency: transitive description: name: args url: "https://pub.dartlang.org" source: hosted version: "2.3.0" async: dependency: transitive description: name: async url: "https://pub.dartlang.org" source: hosted version: "2.8.2" badges: dependency: "direct main" description: name: badges url: "https://pub.dartlang.org" source: hosted version: "2.0.2" boolean_selector: dependency: transitive description: name: boolean_selector url: "https://pub.dartlang.org" source: hosted version: "2.1.0" cached_network_image: dependency: "direct main" description: name: cached_network_image url: "https://pub.dartlang.org" source: hosted version: "3.2.0" cached_network_image_platform_interface: dependency: transitive description: name: cached_network_image_platform_interface url: "https://pub.dartlang.org" source: hosted version: "1.0.0" cached_network_image_web: dependency: transitive description: name: cached_network_image_web url: "https://pub.dartlang.org" source: hosted version: "1.0.1" characters: dependency: transitive description: name: characters url: "https://pub.dartlang.org" source: hosted version: "1.2.0" charcode: dependency: transitive description: name: charcode url: "https://pub.dartlang.org" source: hosted version: "1.3.1" cli_util: dependency: transitive description: name: cli_util url: "https://pub.dartlang.org" source: hosted version: "0.3.5" clock: dependency: transitive description: name: clock url: "https://pub.dartlang.org" source: hosted version: "1.1.0" cloudinary_sdk: dependency: "direct main" description: name: cloudinary_sdk url: "https://pub.dartlang.org" source: hosted version: "3.0.1+7" collection: dependency: transitive description: name: collection url: "https://pub.dartlang.org" source: hosted version: "1.15.0" connectivity_plus: dependency: transitive description: name: connectivity_plus url: "https://pub.dartlang.org" source: hosted version: "1.4.0" connectivity_plus_linux: dependency: transitive description: name: connectivity_plus_linux url: "https://pub.dartlang.org" source: hosted version: "1.2.0" connectivity_plus_macos: dependency: transitive description: name: connectivity_plus_macos url: "https://pub.dartlang.org" source: hosted version: "1.2.1" connectivity_plus_platform_interface: dependency: transitive description: name: connectivity_plus_platform_interface url: "https://pub.dartlang.org" source: hosted version: "1.2.0" connectivity_plus_web: dependency: transitive description: name: connectivity_plus_web url: "https://pub.dartlang.org" source: hosted version: "1.2.0" connectivity_plus_windows: dependency: transitive description: name: connectivity_plus_windows url: "https://pub.dartlang.org" source: hosted version: "1.2.0" convert: dependency: transitive description: name: convert url: "https://pub.dartlang.org" source: hosted version: "3.0.1" cross_file: dependency: transitive description: name: cross_file url: "https://pub.dartlang.org" source: hosted version: "0.3.2" crypto: dependency: transitive description: name: crypto url: "https://pub.dartlang.org" source: hosted version: "3.0.1" csc_picker: dependency: "direct main" description: path: "." ref: HEAD resolved-ref: "9e68f711fb72b0f9e073fe31b04a008099181e02" url: "https://github.com/Achudh/csc_picker.git" source: git version: "0.2.5" csslib: dependency: transitive description: name: csslib url: "https://pub.dartlang.org" source: hosted version: "0.17.1" cupertino_icons: dependency: "direct main" description: name: cupertino_icons url: "https://pub.dartlang.org" source: hosted version: "1.0.4" dbus: dependency: transitive description: name: dbus url: "https://pub.dartlang.org" source: hosted version: "0.6.8" device_frame: dependency: transitive description: name: device_frame url: "https://pub.dartlang.org" source: hosted version: "1.0.0" device_info_plus: dependency: "direct main" description: name: device_info_plus url: "https://pub.dartlang.org" source: hosted version: "3.2.1" device_info_plus_linux: dependency: transitive description: name: device_info_plus_linux url: "https://pub.dartlang.org" source: hosted version: "2.1.1" device_info_plus_macos: dependency: transitive description: name: device_info_plus_macos url: "https://pub.dartlang.org" source: hosted version: "2.2.2" device_info_plus_platform_interface: dependency: transitive description: name: device_info_plus_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.3.0+1" device_info_plus_web: dependency: transitive description: name: device_info_plus_web url: "https://pub.dartlang.org" source: hosted version: "2.1.0" device_info_plus_windows: dependency: transitive description: name: device_info_plus_windows url: "https://pub.dartlang.org" source: hosted version: "2.1.1" device_preview: dependency: "direct main" description: name: device_preview url: "https://pub.dartlang.org" source: hosted version: "1.0.0" diff_match_patch: dependency: transitive description: name: diff_match_patch url: "https://pub.dartlang.org" source: hosted version: "0.4.1" diffutil_dart: dependency: transitive description: name: diffutil_dart url: "https://pub.dartlang.org" source: hosted version: "3.0.0" dio: dependency: "direct main" description: name: dio url: "https://pub.dartlang.org" source: hosted version: "4.0.4" dropdown_search: dependency: "direct main" description: name: dropdown_search url: "https://pub.dartlang.org" source: hosted version: "2.0.1" equatable: dependency: transitive description: name: equatable url: "https://pub.dartlang.org" source: hosted version: "2.0.3" fake_async: dependency: transitive description: name: fake_async url: "https://pub.dartlang.org" source: hosted version: "1.2.0" feedback: dependency: "direct main" description: name: feedback url: "https://pub.dartlang.org" source: hosted version: "2.4.0" ffi: dependency: transitive description: name: ffi url: "https://pub.dartlang.org" source: hosted version: "1.1.2" file: dependency: transitive description: name: file url: "https://pub.dartlang.org" source: hosted version: "6.1.2" file_picker: dependency: "direct main" description: name: file_picker url: "https://pub.dartlang.org" source: hosted version: "4.3.3" flutter: dependency: "direct main" description: flutter source: sdk version: "0.0.0" flutter_appauth: dependency: "direct main" description: name: flutter_appauth url: "https://pub.dartlang.org" source: hosted version: "2.2.0" flutter_appauth_platform_interface: dependency: transitive description: name: flutter_appauth_platform_interface url: "https://pub.dartlang.org" source: hosted version: "4.0.0" flutter_blurhash: dependency: transitive description: name: flutter_blurhash url: "https://pub.dartlang.org" source: hosted version: "0.6.0" flutter_cache_manager: dependency: transitive description: name: flutter_cache_manager url: "https://pub.dartlang.org" source: hosted version: "3.3.0" flutter_chat_types: dependency: transitive description: name: flutter_chat_types url: "https://pub.dartlang.org" source: hosted version: "3.2.2" flutter_chat_ui: dependency: "direct main" description: name: flutter_chat_ui url: "https://pub.dartlang.org" source: hosted version: "1.5.5" flutter_colorpicker: dependency: transitive description: name: flutter_colorpicker url: "https://pub.dartlang.org" source: hosted version: "1.0.3" flutter_inappwebview: dependency: "direct main" description: name: flutter_inappwebview url: "https://pub.dartlang.org" source: hosted version: "5.3.2" flutter_keyboard_visibility: dependency: transitive description: name: flutter_keyboard_visibility url: "https://pub.dartlang.org" source: hosted version: "5.1.1" flutter_keyboard_visibility_platform_interface: dependency: transitive description: name: flutter_keyboard_visibility_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.0.0" flutter_keyboard_visibility_web: dependency: transitive description: name: flutter_keyboard_visibility_web url: "https://pub.dartlang.org" source: hosted version: "2.0.0" flutter_launcher_icons: dependency: "direct main" description: name: flutter_launcher_icons url: "https://pub.dartlang.org" source: hosted version: "0.9.2" flutter_link_previewer: dependency: transitive description: name: flutter_link_previewer url: "https://pub.dartlang.org" source: hosted version: "2.6.2" flutter_linkify: dependency: transitive description: name: flutter_linkify url: "https://pub.dartlang.org" source: hosted version: "5.0.2" flutter_lints: dependency: "direct main" description: name: flutter_lints url: "https://pub.dartlang.org" source: hosted version: "1.0.4" flutter_localizations: dependency: transitive description: flutter source: sdk version: "0.0.0" flutter_native_image: dependency: "direct main" description: name: flutter_native_image url: "https://pub.dartlang.org" source: hosted version: "0.0.6+1" flutter_native_splash: dependency: "direct main" description: name: flutter_native_splash url: "https://pub.dartlang.org" source: hosted version: "1.3.3" flutter_plugin_android_lifecycle: dependency: transitive description: name: flutter_plugin_android_lifecycle url: "https://pub.dartlang.org" source: hosted version: "2.0.5" flutter_quill: dependency: "direct main" description: name: flutter_quill url: "https://pub.dartlang.org" source: hosted version: "2.5.2" flutter_secure_storage: dependency: "direct main" description: name: flutter_secure_storage url: "https://pub.dartlang.org" source: hosted version: "5.0.2" flutter_secure_storage_linux: dependency: transitive description: name: flutter_secure_storage_linux url: "https://pub.dartlang.org" source: hosted version: "1.1.0" flutter_secure_storage_macos: dependency: transitive description: name: flutter_secure_storage_macos url: "https://pub.dartlang.org" source: hosted version: "1.1.0" flutter_secure_storage_platform_interface: dependency: transitive description: name: flutter_secure_storage_platform_interface url: "https://pub.dartlang.org" source: hosted version: "1.0.0" flutter_secure_storage_web: dependency: transitive description: name: flutter_secure_storage_web url: "https://pub.dartlang.org" source: hosted version: "1.0.2" flutter_secure_storage_windows: dependency: transitive description: name: flutter_secure_storage_windows url: "https://pub.dartlang.org" source: hosted version: "1.1.2" flutter_signin_button: dependency: "direct main" description: name: flutter_signin_button url: "https://pub.dartlang.org" source: hosted version: "2.0.0" flutter_slidable: dependency: "direct main" description: name: flutter_slidable url: "https://pub.dartlang.org" source: hosted version: "1.2.0" flutter_svg: dependency: "direct main" description: name: flutter_svg url: "https://pub.dartlang.org" source: hosted version: "0.22.0" flutter_test: dependency: "direct dev" description: flutter source: sdk version: "0.0.0" flutter_web_plugins: dependency: transitive description: flutter source: sdk version: "0.0.0" fluttertoast: dependency: "direct main" description: name: fluttertoast url: "https://pub.dartlang.org" source: hosted version: "8.0.8" font_awesome_flutter: dependency: "direct main" description: name: font_awesome_flutter url: "https://pub.dartlang.org" source: hosted version: "9.2.0" freezed_annotation: dependency: transitive description: name: freezed_annotation url: "https://pub.dartlang.org" source: hosted version: "1.1.0" gettext_parser: dependency: transitive description: name: gettext_parser url: "https://pub.dartlang.org" source: hosted version: "0.2.0" glob: dependency: transitive description: name: glob url: "https://pub.dartlang.org" source: hosted version: "2.0.2" google_fonts: dependency: "direct main" description: name: google_fonts url: "https://pub.dartlang.org" source: hosted version: "2.2.0" gql: dependency: transitive description: name: gql url: "https://pub.dartlang.org" source: hosted version: "0.13.0" gql_dedupe_link: dependency: transitive description: name: gql_dedupe_link url: "https://pub.dartlang.org" source: hosted version: "2.0.0" gql_error_link: dependency: transitive description: name: gql_error_link url: "https://pub.dartlang.org" source: hosted version: "0.2.0" gql_exec: dependency: transitive description: name: gql_exec url: "https://pub.dartlang.org" source: hosted version: "0.3.0" gql_http_link: dependency: transitive description: name: gql_http_link url: "https://pub.dartlang.org" source: hosted version: "0.4.0" gql_link: dependency: transitive description: name: gql_link url: "https://pub.dartlang.org" source: hosted version: "0.4.0" gql_transform_link: dependency: transitive description: name: gql_transform_link url: "https://pub.dartlang.org" source: hosted version: "0.2.0" graphql: dependency: transitive description: name: graphql url: "https://pub.dartlang.org" source: hosted version: "5.0.1-beta.6" graphql_flutter: dependency: "direct main" description: name: graphql_flutter url: "https://pub.dartlang.org" source: hosted version: "5.0.0" hive: dependency: transitive description: name: hive url: "https://pub.dartlang.org" source: hosted version: "2.0.5" html: dependency: "direct main" description: name: html url: "https://pub.dartlang.org" source: hosted version: "0.15.0" http: dependency: "direct main" description: name: http url: "https://pub.dartlang.org" source: hosted version: "0.13.4" http_parser: dependency: transitive description: name: http_parser url: "https://pub.dartlang.org" source: hosted version: "4.0.0" i18n_extension: dependency: transitive description: name: i18n_extension url: "https://pub.dartlang.org" source: hosted version: "4.2.0" image: dependency: transitive description: name: image url: "https://pub.dartlang.org" source: hosted version: "3.1.1" image_cropper: dependency: "direct main" description: name: image_cropper url: "https://pub.dartlang.org" source: hosted version: "1.4.1" image_picker: dependency: "direct main" description: name: image_picker url: "https://pub.dartlang.org" source: hosted version: "0.8.4+5" image_picker_for_web: dependency: transitive description: name: image_picker_for_web url: "https://pub.dartlang.org" source: hosted version: "2.1.5" image_picker_platform_interface: dependency: transitive description: name: image_picker_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.4.3" intl: dependency: "direct main" description: name: intl url: "https://pub.dartlang.org" source: hosted version: "0.17.0" js: dependency: transitive description: name: js url: "https://pub.dartlang.org" source: hosted version: "0.6.3" json_annotation: dependency: transitive description: name: json_annotation url: "https://pub.dartlang.org" source: hosted version: "4.4.0" linkify: dependency: transitive description: name: linkify url: "https://pub.dartlang.org" source: hosted version: "4.1.0" lint: dependency: "direct main" description: name: lint url: "https://pub.dartlang.org" source: hosted version: "1.8.2" lints: dependency: "direct main" description: name: lints url: "https://pub.dartlang.org" source: hosted version: "1.0.1" logger: dependency: transitive description: name: logger url: "https://pub.dartlang.org" source: hosted version: "1.1.0" matcher: dependency: transitive description: name: matcher url: "https://pub.dartlang.org" source: hosted version: "0.12.11" meta: dependency: transitive description: name: meta url: "https://pub.dartlang.org" source: hosted version: "1.7.0" mime: dependency: transitive description: name: mime url: "https://pub.dartlang.org" source: hosted version: "1.0.1" modal_bottom_sheet: dependency: "direct main" description: name: modal_bottom_sheet url: "https://pub.dartlang.org" source: hosted version: "2.0.0" modal_progress_hud_alt: dependency: "direct main" description: name: modal_progress_hud_alt url: "https://pub.dartlang.org" source: hosted version: "1.0.0" multi_select_flutter: dependency: "direct main" description: name: multi_select_flutter url: "https://pub.dartlang.org" source: hosted version: "4.0.0" nested: dependency: transitive description: name: nested url: "https://pub.dartlang.org" source: hosted version: "1.0.0" nm: dependency: transitive description: name: nm url: "https://pub.dartlang.org" source: hosted version: "0.4.3" normalize: dependency: transitive description: name: normalize url: "https://pub.dartlang.org" source: hosted version: "0.6.0" octo_image: dependency: transitive description: name: octo_image url: "https://pub.dartlang.org" source: hosted version: "1.0.1" open_file: dependency: "direct main" description: name: open_file url: "https://pub.dartlang.org" source: hosted version: "3.2.1" package_config: dependency: transitive description: name: package_config url: "https://pub.dartlang.org" source: hosted version: "2.0.2" package_info_plus: dependency: "direct main" description: name: package_info_plus url: "https://pub.dartlang.org" source: hosted version: "1.3.0" package_info_plus_linux: dependency: transitive description: name: package_info_plus_linux url: "https://pub.dartlang.org" source: hosted version: "1.0.3" package_info_plus_macos: dependency: transitive description: name: package_info_plus_macos url: "https://pub.dartlang.org" source: hosted version: "1.3.0" package_info_plus_platform_interface: dependency: transitive description: name: package_info_plus_platform_interface url: "https://pub.dartlang.org" source: hosted version: "1.0.2" package_info_plus_web: dependency: transitive description: name: package_info_plus_web url: "https://pub.dartlang.org" source: hosted version: "1.0.4" package_info_plus_windows: dependency: transitive description: name: package_info_plus_windows url: "https://pub.dartlang.org" source: hosted version: "1.0.4" path: dependency: transitive description: name: path url: "https://pub.dartlang.org" source: hosted version: "1.8.0" path_drawing: dependency: transitive description: name: path_drawing url: "https://pub.dartlang.org" source: hosted version: "0.5.1+1" path_parsing: dependency: transitive description: name: path_parsing url: "https://pub.dartlang.org" source: hosted version: "0.2.1" path_provider: dependency: transitive description: name: path_provider url: "https://pub.dartlang.org" source: hosted version: "2.0.8" path_provider_android: dependency: transitive description: name: path_provider_android url: "https://pub.dartlang.org" source: hosted version: "2.0.11" path_provider_ios: dependency: transitive description: name: path_provider_ios url: "https://pub.dartlang.org" source: hosted version: "2.0.7" path_provider_linux: dependency: transitive description: name: path_provider_linux url: "https://pub.dartlang.org" source: hosted version: "2.1.5" path_provider_macos: dependency: transitive description: name: path_provider_macos url: "https://pub.dartlang.org" source: hosted version: "2.0.5" path_provider_platform_interface: dependency: transitive description: name: path_provider_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.0.3" path_provider_windows: dependency: transitive description: name: path_provider_windows url: "https://pub.dartlang.org" source: hosted version: "2.0.5" pedantic: dependency: transitive description: name: pedantic url: "https://pub.dartlang.org" source: hosted version: "1.11.1" percent_indicator: dependency: "direct main" description: name: percent_indicator url: "https://pub.dartlang.org" source: hosted version: "3.4.0" persistent_bottom_nav_bar: dependency: "direct main" description: name: persistent_bottom_nav_bar url: "https://pub.dartlang.org" source: hosted version: "4.0.2" petitparser: dependency: transitive description: name: petitparser url: "https://pub.dartlang.org" source: hosted version: "4.4.0" photo_view: dependency: transitive description: name: photo_view url: "https://pub.dartlang.org" source: hosted version: "0.13.0" platform: dependency: transitive description: name: platform url: "https://pub.dartlang.org" source: hosted version: "3.1.0" plugin_platform_interface: dependency: transitive description: name: plugin_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.1.2" process: dependency: transitive description: name: process url: "https://pub.dartlang.org" source: hosted version: "4.2.4" provider: dependency: "direct main" description: name: provider url: "https://pub.dartlang.org" source: hosted version: "6.0.2" pub_semver: dependency: transitive description: name: pub_semver url: "https://pub.dartlang.org" source: hosted version: "2.1.0" pull_to_refresh: dependency: "direct main" description: name: pull_to_refresh url: "https://pub.dartlang.org" source: hosted version: "2.0.0" quiver: dependency: transitive description: name: quiver url: "https://pub.dartlang.org" source: hosted version: "3.0.1+1" rename: dependency: "direct main" description: name: rename url: "https://pub.dartlang.org" source: hosted version: "1.3.1" responsive_builder: dependency: "direct main" description: name: responsive_builder url: "https://pub.dartlang.org" source: hosted version: "0.4.1" rxdart: dependency: transitive description: name: rxdart url: "https://pub.dartlang.org" source: hosted version: "0.27.3" searchfield: dependency: "direct main" description: name: searchfield url: "https://pub.dartlang.org" source: hosted version: "0.5.6" share_plus: dependency: "direct main" description: name: share_plus url: "https://pub.dartlang.org" source: hosted version: "2.2.0" share_plus_linux: dependency: transitive description: name: share_plus_linux url: "https://pub.dartlang.org" source: hosted version: "2.0.4" share_plus_macos: dependency: transitive description: name: share_plus_macos url: "https://pub.dartlang.org" source: hosted version: "2.0.2" share_plus_platform_interface: dependency: transitive description: name: share_plus_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.0.1" share_plus_web: dependency: transitive description: name: share_plus_web url: "https://pub.dartlang.org" source: hosted version: "2.0.4" share_plus_windows: dependency: transitive description: name: share_plus_windows url: "https://pub.dartlang.org" source: hosted version: "2.0.3" shared_preferences: dependency: transitive description: name: shared_preferences url: "https://pub.dartlang.org" source: hosted version: "2.0.12" shared_preferences_android: dependency: transitive description: name: shared_preferences_android url: "https://pub.dartlang.org" source: hosted version: "2.0.10" shared_preferences_ios: dependency: transitive description: name: shared_preferences_ios url: "https://pub.dartlang.org" source: hosted version: "2.0.9" shared_preferences_linux: dependency: transitive description: name: shared_preferences_linux url: "https://pub.dartlang.org" source: hosted version: "2.0.4" shared_preferences_macos: dependency: transitive description: name: shared_preferences_macos url: "https://pub.dartlang.org" source: hosted version: "2.0.2" shared_preferences_platform_interface: dependency: transitive description: name: shared_preferences_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.0.0" shared_preferences_web: dependency: transitive description: name: shared_preferences_web url: "https://pub.dartlang.org" source: hosted version: "2.0.3" shared_preferences_windows: dependency: transitive description: name: shared_preferences_windows url: "https://pub.dartlang.org" source: hosted version: "2.0.4" sky_engine: dependency: transitive description: flutter source: sdk version: "0.0.99" source_span: dependency: transitive description: name: source_span url: "https://pub.dartlang.org" source: hosted version: "1.8.1" sprintf: dependency: transitive description: name: sprintf url: "https://pub.dartlang.org" source: hosted version: "6.0.0" sqflite: dependency: transitive description: name: sqflite url: "https://pub.dartlang.org" source: hosted version: "2.0.2" sqflite_common: dependency: transitive description: name: sqflite_common url: "https://pub.dartlang.org" source: hosted version: "2.2.0" stack_trace: dependency: transitive description: name: stack_trace url: "https://pub.dartlang.org" source: hosted version: "1.10.0" steps_indicator: dependency: "direct main" description: name: steps_indicator url: "https://pub.dartlang.org" source: hosted version: "1.3.0" stream_channel: dependency: transitive description: name: stream_channel url: "https://pub.dartlang.org" source: hosted version: "2.1.0" string_scanner: dependency: transitive description: name: string_scanner url: "https://pub.dartlang.org" source: hosted version: "1.1.0" string_validator: dependency: transitive description: name: string_validator url: "https://pub.dartlang.org" source: hosted version: "0.3.0" synchronized: dependency: transitive description: name: synchronized url: "https://pub.dartlang.org" source: hosted version: "3.0.0" term_glyph: dependency: transitive description: name: term_glyph url: "https://pub.dartlang.org" source: hosted version: "1.2.0" test_api: dependency: transitive description: name: test_api url: "https://pub.dartlang.org" source: hosted version: "0.4.3" tuple: dependency: transitive description: name: tuple url: "https://pub.dartlang.org" source: hosted version: "2.0.0" typed_data: dependency: transitive description: name: typed_data url: "https://pub.dartlang.org" source: hosted version: "1.3.0" universal_io: dependency: transitive description: name: universal_io url: "https://pub.dartlang.org" source: hosted version: "2.0.4" url_launcher: dependency: "direct main" description: name: url_launcher url: "https://pub.dartlang.org" source: hosted version: "6.0.18" url_launcher_android: dependency: transitive description: name: url_launcher_android url: "https://pub.dartlang.org" source: hosted version: "6.0.14" url_launcher_ios: dependency: transitive description: name: url_launcher_ios url: "https://pub.dartlang.org" source: hosted version: "6.0.14" url_launcher_linux: dependency: transitive description: name: url_launcher_linux url: "https://pub.dartlang.org" source: hosted version: "2.0.3" url_launcher_macos: dependency: transitive description: name: url_launcher_macos url: "https://pub.dartlang.org" source: hosted version: "2.0.3" url_launcher_platform_interface: dependency: transitive description: name: url_launcher_platform_interface url: "https://pub.dartlang.org" source: hosted version: "2.0.5" url_launcher_web: dependency: transitive description: name: url_launcher_web url: "https://pub.dartlang.org" source: hosted version: "2.0.6" url_launcher_windows: dependency: transitive description: name: url_launcher_windows url: "https://pub.dartlang.org" source: hosted version: "2.0.2" uuid: dependency: "direct main" description: name: uuid url: "https://pub.dartlang.org" source: hosted version: "3.0.5" vector_math: dependency: transitive description: name: vector_math url: "https://pub.dartlang.org" source: hosted version: "2.1.1" video_player: dependency: "direct main" description: name: video_player url: "https://pub.dartlang.org" source: hosted version: "2.2.18" video_player_android: dependency: transitive description: name: video_player_android url: "https://pub.dartlang.org" source: hosted version: "2.2.17" video_player_avfoundation: dependency: transitive description: name: video_player_avfoundation url: "https://pub.dartlang.org" source: hosted version: "2.2.17" video_player_platform_interface: dependency: transitive description: name: video_player_platform_interface url: "https://pub.dartlang.org" source: hosted version: "5.0.1" video_player_web: dependency: transitive description: name: video_player_web url: "https://pub.dartlang.org" source: hosted version: "2.0.6" vm_service: dependency: "direct main" description: name: vm_service url: "https://pub.dartlang.org" source: hosted version: "8.1.0" watcher: dependency: transitive description: name: watcher url: "https://pub.dartlang.org" source: hosted version: "1.0.1" web_socket_channel: dependency: transitive description: name: web_socket_channel url: "https://pub.dartlang.org" source: hosted version: "2.1.0" win32: dependency: transitive description: name: win32 url: "https://pub.dartlang.org" source: hosted version: "2.3.10" xdg_directories: dependency: transitive description: name: xdg_directories url: "https://pub.dartlang.org" source: hosted version: "0.2.0" xml: dependency: transitive description: name: xml url: "https://pub.dartlang.org" source: hosted version: "5.3.1" yaml: dependency: transitive description: name: yaml url: "https://pub.dartlang.org" source: hosted version: "3.1.0" youtube_player_flutter: dependency: transitive description: name: youtube_player_flutter url: "https://pub.dartlang.org" source: hosted version: "8.0.0" sdks: dart: ">=2.15.1 <3.0.0" flutter: ">=2.8.0" ```
budde377 commented 2 years ago

I only see graphql_flutter in your dependencies. Please add graphql: 5.0.0

Achudh commented 2 years ago

@budde377 It worked. Thank you so much!

now my pubspec looks like

  graphql: 5.0.0
  graphql_flutter: 5.0.0

fixated versions instead of auto fetching new versions

milan-7span commented 2 years ago

Please try and fixate the version of graphql by adding the graphql: 5.0.0 to your dependencies

I am facing the same issue in my app. Tried fixating the version of graphql package.It didn't work in my case.

Can anyone help me finding a solution to this?

Achudh commented 2 years ago

Please try and fixate the version of graphql by adding the graphql: 5.0.0 to your dependencies

I am facing the same issue in my app. Tried fixating the version of graphql package.It didn't work in my case.

Can anyone help me finding a solution to this?

Can you please put your pubspec and pubspec.yml?

milan-7span commented 2 years ago

Please try and fixate the version of graphql by adding the graphql: 5.0.0 to your dependencies

I am facing the same issue in my app. Tried fixating the version of graphql package.It didn't work in my case. Can anyone help me finding a solution to this?

Can you please put your pubspec and pubspec.yml?

I can share snapshot from files.

milan-7span commented 2 years ago

pubspec.yaml File Snapshot image

pubspec.lock file snapshot gql: dependency: "direct main" description: name: gql url: "https://pub.dartlang.org" source: hosted version: "0.13.0" gql_dedupe_link: dependency: transitive description: name: gql_dedupe_link url: "https://pub.dartlang.org" source: hosted version: "2.0.0" gql_error_link: dependency: transitive description: name: gql_error_link url: "https://pub.dartlang.org" source: hosted version: "0.2.0" gql_exec: dependency: transitive description: name: gql_exec url: "https://pub.dartlang.org" source: hosted version: "0.3.0" gql_http_link: dependency: transitive description: name: gql_http_link url: "https://pub.dartlang.org" source: hosted version: "0.4.0" gql_link: dependency: transitive description: name: gql_link url: "https://pub.dartlang.org" source: hosted version: "0.4.0" gql_transform_link: dependency: transitive description: name: gql_transform_link url: "https://pub.dartlang.org" source: hosted version: "0.2.0" graphql: dependency: "direct main" description: name: graphql url: "https://pub.dartlang.org" source: hosted version: "5.0.1-beta.6" graphql_flutter: dependency: "direct main" description: name: graphql_flutter url: "https://pub.dartlang.org" source: hosted version: "5.0.0"

milan-7span commented 2 years ago

Fixating Version raises issues with rxdart package, so fixating didn't work.

Achudh commented 2 years ago

remove ^ and use only 5.0.0

milan-7span commented 2 years ago

remove ^ and use only 5.0.0

Tried that, but It gives error like this

Running "flutter pub get" in myapp... Because graphql >=4.0.3-alpha.1 <5.0.1-beta.1 depends on rxdart ^0.26.0 and myapp depends on rxdart ^0.27.3, graphql >=4.0.3-alpha.1 <5.0.1-beta.1 is forbidden. So, because myapp depends on graphql 5.0.0, version solving failed. pub get failed (1; So, because myapp depends on graphql 5.0.0, version solving failed.) Process finished with exit code 1

budde377 commented 2 years ago

The point is that the versions need to be in sync. You can also try and use the latest beta version for both packages.

milan-7span commented 2 years ago

The point is that the versions need to be in sync. You can also try and use the latest beta version for both packages.

Okay, I will try that way.

Thank You!

budde377 commented 2 years ago

@vincenzopalazzo i know we want to separate the versions of the packages, but until then, it might make sense to force them in sync. I.e. set the dependencies to exact versions between the packages.

XOneto9 commented 2 years ago

I have faced this issue for a few days. I think this is appear to M1 Mac. The version 5.0.1-beta.6 catch the problem! It work for me