flutterfire icon indicating copy to clipboard operation
flutterfire copied to clipboard

Class constructor IndexedDBLocalPersistence cannot be invoked without 'new'

Open jiharal opened this issue 1 year ago • 1 comments

TypeError: Class constructor IndexedDBLocalPersistence cannot be invoked without 'new' dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 462:37 _checkAndCall dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 555:39 dcall https://www.gstatic.com/firebasejs/10.7.0/firebase-auth.js 1:48595 _getInstance https://www.gstatic.com/firebasejs/10.7.0/firebase-auth.js 1:144495 _initializeAuthInstance https://www.gstatic.com/firebasejs/10.7.0/firebase-auth.js 1:144643 instanceFactory https://www.gstatic.com/firebasejs/10.7.0/firebase-app.js 977:39 getOrInitializeService https://www.gstatic.com/firebasejs/10.7.0/firebase-app.js 921:31 initialize https://www.gstatic.com/firebasejs/10.7.0/firebase-auth.js 1:68877 initializeAuth dart-sdk/lib/_internal/js_shared/lib/js_util_patch.dart 110:66 callMethod$ packages/firebase_auth_web/src/interop/auth.dart 24:40 getAuthInstance packages/firebase_auth_web/firebase_auth_web.dart 92:43 dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 84:54 runBody dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 127:5 _async packages/firebase_auth_web/firebase_auth_web.dart 91:33 packages/firebase_core_web/src/firebase_core_web.dart 323:41 dart-sdk/lib/internal/iterable.dart 403:20 moveNext dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/operations.dart 1140:20 next dart-sdk/lib/async/future.dart 516:16 wait packages/firebase_core_web/src/firebase_core_web.dart 315:18 initializeApp dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50 dart-sdk/lib/async/zone.dart 1661:54 runUnary dart-sdk/lib/async/future_impl.dart 162:18 handleValue dart-sdk/lib/async/future_impl.dart 838:44 handleValueCallback dart-sdk/lib/async/future_impl.dart 867:13 _propagateToListeners dart-sdk/lib/async/future_impl.dart 643:5 [_completeWithValue] dart-sdk/lib/async/future.dart 524:22 dart-sdk/lib/async/zone.dart 1661:54 runUnary dart-sdk/lib/async/future_impl.dart 162:18 handleValue dart-sdk/lib/async/future_impl.dart 838:44 handleValueCallback dart-sdk/lib/async/future_impl.dart 867:13 _propagateToListeners dart-sdk/lib/async/future_impl.dart 643:5 [_completeWithValue] dart-sdk/lib/async/future_impl.dart 713:7 callback dart-sdk/lib/async/schedule_microtask.dart 40:11 _microtaskLoop dart-sdk/lib/async/schedule_microtask.dart 49:5 _startMicrotaskLoop dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 181:7

jiharal avatar Feb 17 '24 07:02 jiharal

maybe related to #12344

Macacoazul01 avatar Feb 17 '24 14:02 Macacoazul01

I encounter the same issue after upgrading to 3.19. Please fix asap.

ghecreagheorghe avatar Feb 18 '24 11:02 ghecreagheorghe

Same issue after 3.19 upgrade.

tyler-jewell avatar Feb 18 '24 17:02 tyler-jewell

I am facing the same issue after the 3.19 upgrade. Any solutions ?

VIP-Dev-Invisible avatar Feb 19 '24 02:02 VIP-Dev-Invisible

encountered issue after 3.19 upgrade , please fix asap

ZoftPranav avatar Feb 19 '24 06:02 ZoftPranav

flutter run -d chrome --release flutter run -d chrome --profile

You can run if you don't want to downgrade.

simeonangelov94 avatar Feb 19 '24 06:02 simeonangelov94

flutter run -d chrome --release flutter run -d chrome --profile

You can run if you don't want to downgrade.

what is the root cause of this issue?

ZoftPranav avatar Feb 19 '24 07:02 ZoftPranav

Looks like the new Flutter version is not working properly with the Firebase package. Waiting for update. https://github.com/firebase/flutterfire/issues/12291

simeonangelov94 avatar Feb 19 '24 07:02 simeonangelov94

It's been 3 days waiting ... our projects have pending bugs and features to be implemented, please fix this asap.

omegaui avatar Feb 19 '24 07:02 omegaui

It's been 3 days waiting ... our projects have pending bugs and features to be implemented, please fix this asap.

same here...

ZoftPranav avatar Feb 19 '24 07:02 ZoftPranav

i think. they need more time than we expect.

VIP-Dev-Invisible avatar Feb 19 '24 07:02 VIP-Dev-Invisible

waiting for the new release !

vijayvaghela72 avatar Feb 19 '24 09:02 vijayvaghela72

flutter run -d chrome --release flutter run -d chrome --profile

You can run if you don't want to downgrade.

flutter run -d chrome --release flutter run -d chrome --profile

You can run if you don't want to downgrade.

Thanks, It's a good solution while I wait for an update :D

silexcorp avatar Feb 19 '24 21:02 silexcorp

flutter run -d chrome --release flutter run -d chrome --profile You can run if you don't want to downgrade.

flutter run -d chrome --release flutter run -d chrome --profile You can run if you don't want to downgrade.

Thanks, It's a good solution while I wait for an update :D

Update your fibrease_auth to the latest version - 4.17.5. The fix has been deployed

simeonangelov94 avatar Feb 20 '24 04:02 simeonangelov94

Same isso

Johnnvula avatar Mar 01 '24 00:03 Johnnvula

same here

shehroz2260 avatar Mar 02 '24 05:03 shehroz2260

please help i am also in this condition

PRASHANTKUMAR2004 avatar Mar 05 '24 09:03 PRASHANTKUMAR2004

To solve this error, we need to downgrade

Johnnvula avatar Mar 06 '24 00:03 Johnnvula