-
Notifications
You must be signed in to change notification settings - Fork 4.1k
Closed
Labels
Needs AttentionThis issue needs maintainer attention.This issue needs maintainer attention.StaleIssue with no recent activityIssue with no recent activityblocked: customer-responseWaiting for customer response, e.g. more information was requested.Waiting for customer response, e.g. more information was requested.closed-by-botplatform: allIssues / PRs which are for all platforms.Issues / PRs which are for all platforms.resolution: fixedA fix has been merged or is pending merge from a PR.A fix has been merged or is pending merge from a PR.type: bugSomething isn't workingSomething isn't working
Description
Is there an existing issue for this?
- I have searched the existing issues.
Which plugins are affected?
Core
Which platforms are affected?
No response
Description
After upgrading Firebase Core from version 2.27.0
to version 2.30.1
, running the build runner resulted in the following error in the log output.
The error originates from the _flutterfire_internals
package v1.3.32
. Downgrading the package to v1.3.31
by overriding it, resolved the error. It's noted that the error was addressed in a merged pull request: PR #12698, which was released in version 1.3.32
.
Expected Behavior
The build runner should execute without errors.
Current Behavior
The build runner fails with the reported error.
Reproducing the issue
Upgrade Firebase Core to version 2.30.1
.
Using the latest build_runner: ^2.4.9
Run the build runner dart run build_runner build --delete-conflicting-outputs
Firebase Core version
2.30.1
Flutter Version
3.19.6
Relevant Log Output
[SEVERE] build_modules:module_library on package:_flutterfire_internals/_flutterfire_internals.dart (cached):
Invalid argument(s): Unsupported conditional import of `dart:js_interop` found in _flutterfire_internals|lib/_flutterfire_internals.dart:
import 'src/interop_shimmer.dart' if (dart.library.js_interop) 'dart:js_interop' as js_interop;
This environment does not support direct conditional imports of `dart:` libraries. Instead you must create a separate library which unconditionally imports (or exports) the `dart:` library that you want to use, and conditionally import (or export) that library.
[SEVERE] Failed after 1m 28s
Flutter dependencies
Expand Flutter dependencies
snippet
Replace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
elitree, SleepySquash, PrimeTimeTran and andynewman10
Metadata
Metadata
Assignees
Labels
Needs AttentionThis issue needs maintainer attention.This issue needs maintainer attention.StaleIssue with no recent activityIssue with no recent activityblocked: customer-responseWaiting for customer response, e.g. more information was requested.Waiting for customer response, e.g. more information was requested.closed-by-botplatform: allIssues / PRs which are for all platforms.Issues / PRs which are for all platforms.resolution: fixedA fix has been merged or is pending merge from a PR.A fix has been merged or is pending merge from a PR.type: bugSomething isn't workingSomething isn't working