Skip to content

🐛 Firebase Core & All Other Plugins :Uncaught (in promise) TypeError: Failed to resolve module specifier 'Instance of 'TrustedScriptURL'' #10477

@irajeshh

Description

@irajeshh

In flutter web release mode, web is crashing and nothing loads.
In console it shows the following errors for all the firebase plugins used:

Uncaught (in promise) TypeError: Failed to resolve module specifier 'Instance of 'TrustedScriptURL''
image

The error was not found before 7 days.
Nothing was changed, flutter sdk, firebase plugin versions, flutter codes. Everything is same, but appears on release mode and also on the hosted site.

Working Devices:
iOS: Brave & Safari
MacOs: Safari & Firefox

If I remove await Firebase.initializeApp(options: FirebaseService.web); nothing is crashing.

Tested on
Flutter Stable: 3.3.10 & 3.7.3

Firebase plugins:

firebase_core: 2.6.0
firebase_messaging: 14.2.3
firebase_auth: 4.2.7
cloud_firestore: 4.4.1
firebase_storage: 11.0.12

Flutter Doctor Output

[✓] Flutter (Channel stable, 3.7.3, on macOS 13.1 22C65 darwin-arm64, locale en-IN)
Checking Android licenses is taking an unexpectedly long time...[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 14.2)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2021.2)
[✓] VS Code (version 1.75.1)
[✓] Connected device (2 available)
    ! Error: Rajesh’s iPhone is busy: Fetching debug symbols for Rajesh’s iPhone. Xcode will continue when Rajesh’s iPhone is finished.
      (code -10)
[✓] HTTP Host Availability

• No issues found!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs AttentionThis issue needs maintainer attention.type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions