Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Not Sure what errror to post, too many errors. #405

Closed
sikandernoori opened this issue Sep 15, 2021 · 2 comments
Closed

Not Sure what errror to post, too many errors. #405

sikandernoori opened this issue Sep 15, 2021 · 2 comments

Comments

@sikandernoori
Copy link

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)

@kevmoo
Copy link
Contributor

kevmoo commented Sep 15, 2021

@kevmoo kevmoo closed this as completed Sep 15, 2021
@pbaba1
Copy link

pbaba1 commented Mar 5, 2022

@sikandernoori - Were you able to resolve this issue. Can you provide some insights on how did you resolve this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants