-
Notifications
You must be signed in to change notification settings - Fork 4k
[firebase_core]: Error Encountered After Upgrading Firebase Core to v2.30.1: Invalid Conditional Import in _flutterfire_internals Package #12708
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
Comments
Thanks for the report I'm looking into it, have you tried to exclude this particular file in your build.yaml file? |
hello @Lyokone , my comment not related to mentioned issue, but if I can please ask to do another version release to include 10.11.1 firebase js library https://firebase.google.com/support/release-notes/js |
Same error here:
@Lyokone pinning
|
I ran into this too. Updating to the latest versions of all the Flutter Firebase packages solved the error for me. |
For some reason, updating to the latest Firebase packages worked earlier, but now I'm getting the same error again, even with all the latest packages. Pinning |
Hey @isaacadariku. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
The issue still happen with firebase_core: 2.31.0 |
@Lyokone Thanks for the response. I have not tried excluding the file in the I will try to create a sample project to reproduce the issue and share it with you. |
Thanks, waiting for your sample project @isaacadariku |
Hi @isaacadariku, I was running into this issue as well, and have a small workaround which I might submit as a PR if it works for you too. Can you see if that's the case?
Hi @Lyokone, I'm still not 100% sure how this is happening in my build.yaml, but I believe it has to do with some reference I apologize that I'm still not sure how to reproduce the original example, but my guess based on the above is it would involve adding a builder using the |
@elitree |
Hi @Lyokone, I submitted the above PR to resolve this issue. But I totally understand if you'd rather wait for a minimal reproducible example before looking at the PR, so let me know if that's the case. Thanks. |
Hey @isaacadariku. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Quick note that #12925 is submitted to fix this issue. Thanks… |
Since there haven't been any recent updates here, I am going to close this issue. @isaacadariku if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this. |
Can we leave this open until |
A fix from @elitree is almost ready to be merged to fix this. Hey, @google-oss-bot, please re-open the issue 😄 |
The PR is now merged |
Is there an existing issue for this?
Which plugins are affected?
Core
Which platforms are affected?
No response
Description
After upgrading Firebase Core from version
2.27.0
to version2.30.1
, running the build runner resulted in the following error in the log output.The error originates from the
_flutterfire_internals
packagev1.3.32
. Downgrading the package tov1.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 version1.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
Flutter dependencies
Expand
Flutter dependencies
snippetReplace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
No response
The text was updated successfully, but these errors were encountered: