After Installing firebase-dart package in my pure Dart project, I get below error when I Run application.
Connecting to VM Service at http://127.0.0.1:58069/h6Epv8Er5Y0=/
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/storage.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html';
^
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/utils.dart:2:8: Error: Not found: 'dart:html'
import 'dart:html';
^
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/js-0.6.3/lib/js.dart:8:1: Error: Not found: 'dart:js'
export 'dart:js' show allowInterop, allowInteropCaptureThis;
^
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/js-0.6.3/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
export 'dart:js_util';
^
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/auth.dart:340:25: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
- 'Auth' is from 'package:firebase/src/auth.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
final nextWrapper = allowInterop((firebase_interop.UserJsImpl? user) {
^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/auth.dart:344:26: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
- 'Auth' is from 'package:firebase/src/auth.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
final errorWrapper = allowInterop((e) => changeController.addError(e));
^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/auth.dart:374:9: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
- 'Auth' is from 'package:firebase/src/auth.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
allowInterop((firebase_interop.UserJsImpl? user) {
^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/auth.dart:377:9: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
- 'Auth' is from 'package:firebase/src/auth.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/auth.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
allowInterop(idTokenChangedController.addError),
^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/database.dart:156:9: Error: The method 'allowInterop' isn't defined for the class 'DatabaseReference<T>'.
- 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/database.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
allowInterop((update) => jsify(transactionUpdate(dartify(update))));
^^^^^^^^^^^^
../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/database.dart:158:28: Error: The method 'allowInterop' isn't defined for the class 'DatabaseReference<T>'.
- 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../AppData/Local/Pub/Cache/hosted/pub.dartlang.org/firebase-9.0.2/lib/src/database.dart').
Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
final onCompleteWrap = allowInterop(
^^^^^^^^^^^^
Exited (254)
After Installing firebase-dart package in my pure Dart project, I get below error when I Run application.