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

fix: update all Dart SDK version constraints to Dart >= 2.16.0 #8184

Merged
merged 3 commits into from Feb 25, 2022

Conversation

rrousselGit
Copy link
Contributor

@rrousselGit rrousselGit commented Feb 25, 2022

Description

Related Issues

Related to #8156

fixes #8181

Checklist

Before you create this PR confirm that it meets all requirements listed below by checking the relevant checkboxes ([x]).
This will ensure a smooth and quick review process. Updating the pubspec.yaml and changelogs is not required.

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • My PR includes unit or integration tests for all changed/updated/fixed behaviors (See Contributor Guide).
  • All existing and new tests are passing.
  • I updated/added relevant documentation (doc comments with ///).
  • The analyzer (melos run analyze) does not report any problems on my PR.
  • I read and followed the Flutter Style Guide.
  • I signed the CLA.
  • I am willing to follow-up on review comments in a timely manner.

Breaking Change

Does your PR require plugin users to manually update their apps to accommodate your change?

  • Yes, this is a breaking change.
  • No, this is not a breaking change.

@Salakar Salakar merged commit df4a5ba into master Feb 25, 2022
@Salakar Salakar deleted the @rrousselGit/update-all-packages-to-dart-2.16 branch February 25, 2022 13:39
@github-actions
Copy link

Visit the preview URL for this PR (updated for commit f662944):

https://flutter-firebase-docs--pr8184-rrousselgit-update-yi6v0ap3.web.app

(expires Fri, 04 Mar 2022 13:39:43 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

@istvanfedak
Copy link

Hi I'm getting the following error when I run flutter run:

Launching lib/main.dart on Chrome in debug mode...
../../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.6.9/lib/src/internals.dart:11:20: Error: Method not found:
'guardWebExceptions'.
  return internals.guardWebExceptions(
                   ^^^^^^^^^^^^^^^^^^
Waiting for connection from debug service on Chrome...             58.4s
Failed to compile application.

I ran flutter upgrade to update everything:

Flutter 2.10.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 097d3313d8 (7 days ago) • 2022-02-18 19:33:08 -0600
Engine • revision a83ed0e5e3
Tools • Dart 2.16.1 • DevTools 2.9.2

and I resolved the issue by adding the following to pubspec.yaml:

dependency_overrides:
  cloud_firestore_web: 2.6.5

@raffvirdo
Copy link

Hi I'm getting the following error when I run flutter run:

Launching lib/main.dart on Chrome in debug mode...
../../../flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.6.9/lib/src/internals.dart:11:20: Error: Method not found:
'guardWebExceptions'.
  return internals.guardWebExceptions(
                   ^^^^^^^^^^^^^^^^^^
Waiting for connection from debug service on Chrome...             58.4s
Failed to compile application.

I ran flutter upgrade to update everything:

Flutter 2.10.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 097d3313d8 (7 days ago) • 2022-02-18 19:33:08 -0600
Engine • revision a83ed0e5e3
Tools • Dart 2.16.1 • DevTools 2.9.2

and I resolved the issue by adding the following to pubspec.yaml:

dependency_overrides:
  cloud_firestore_web: 2.6.5

I am having the same error message but after upgrading and adding the dependency override it is still not fixed.

@alerodang
Copy link

alerodang commented Feb 28, 2022

sweetheartTechnologies
Any update on this issue? I have the same problem.

@skypopcorn1
Copy link

I have the same or similar issue with Cloud Firestore.

I have recently upgraded Flutter (Channel stable, 2.10.2) and Dart (SDK version: 2.16.1 (stable)). I also added a dependency override to my pubspec.yaml for "cloud_firestore_platform_interface: 5.4.13". I am getting the following error:

"../../../.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-2.6.9/lib/src/internals.dart:11:20: Error: Method not found: 'guardWebExceptions'.
return internals.guardWebExceptions(
^^^^^^^^^^^^^^^^^^
Failed to compile application."

@firebase firebase locked and limited conversation to collaborators Mar 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

🐛 [firebase_messaging] Unable to build or run tests after release
6 participants