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
Error: Not found: 'dart:html' when building for Android/iOS #53005
Comments
Hi @agordeev |
pubspec.yaml name: my_app
description: abc
version: 0.0.1+1
environment:
sdk: ">=2.7.0 <3.0.0"
dependencies:
flutter:
sdk: flutter
# App
core:
path: ../core
shared:
path: ../shared
# data_access:
# path: ../data_access
# Widgets
flutter_platform_widgets:
cached_network_image: any
zoomable_image: any
google_maps_flutter:
# Misc
provider:
flutter_bloc:
equatable:
email_validator: any
package_info: any
device_info: any
cupertino_icons: ^0.1.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter:
assets:
- assets/images/
- assets/fonts/ flutter run --verbose[ +3 ms] /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell getprop
[ +37 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ +3 ms] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ +86 ms] Found plugin cloud_firestore at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.13.3/
[ +9 ms] Found plugin cloud_firestore_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.1.0+3/
[ +3 ms] Found plugin cloud_functions at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-0.4.2+3/
[ +3 ms] Found plugin cloud_functions_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-1.0.3/
[ +10 ms] Found plugin device_info at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.0+1/
[ +7 ms] Found plugin firebase_auth at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.15.5+3/
[ +3 ms] Found plugin firebase_auth_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.1.2/
[ +3 ms] Found plugin firebase_core at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.4/
[ +3 ms] Found plugin firebase_core_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.1.1+2/
[ +8 ms] Found plugin flutter_plugin_android_lifecycle at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.6/
[ +7 ms] Found plugin google_maps_flutter at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.5.24+1/
[ +11 ms] Found plugin package_info at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+3/
[ +2 ms] Found plugin path_provider at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/
[ +12 ms] Found plugin sqflite at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.5/
[ +42 ms] Found plugin cloud_firestore at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore-0.13.3/
[ +2 ms] Found plugin cloud_firestore_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_firestore_web-0.1.0+3/
[ +1 ms] Found plugin cloud_functions at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions-0.4.2+3/
[ +1 ms] Found plugin cloud_functions_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/cloud_functions_web-1.0.3/
[ +5 ms] Found plugin device_info at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/device_info-0.4.0+1/
[ +2 ms] Found plugin firebase_auth at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth-0.15.5+3/
[ +1 ms] Found plugin firebase_auth_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_auth_web-0.1.2/
[ ] Found plugin firebase_core at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core-0.4.4/
[ +1 ms] Found plugin firebase_core_web at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-0.1.1+2/
[ +12 ms] Found plugin flutter_plugin_android_lifecycle at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/flutter_plugin_android_lifecycle-1.0.6/
[ +2 ms] Found plugin google_maps_flutter at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/google_maps_flutter-0.5.24+1/
[ +5 ms] Found plugin package_info at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/package_info-0.4.0+3/
[ +1 ms] Found plugin path_provider at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/path_provider-0.5.0+1/
[ +5 ms] Found plugin sqflite at /Users/user/flutter/.pub-cache/hosted/pub.dartlang.org/sqflite-1.1.5/
[ +62 ms] Generating /Users/user/Documents/MyProjects/MyApp/app/client/android/app/src/main/java/io/flutter/plugins/GeneratedPluginRegistrant.java
[ +29 ms] ro.hardware = ranchu
[ +32 ms] Using hardware rendering with device Android SDK built for x86. If you get graphics artifacts, consider enabling software rendering with "--enable-software-rendering".
[ +27 ms] Launching lib/main.dart on Android SDK built for x86 in debug mode...
[ +11 ms] /Users/user/flutter/bin/cache/dart-sdk/bin/dart /Users/user/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root
/Users/user/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --incremental --target=flutter --debugger-module-names -Ddart.developer.causal_async_stacks=true --output-dill
/var/folders/3p/bhps_g7n5mz0j4xfn_bkbngh0000gn/T/flutter_tool.sgsWVj/app.dill --packages /Users/user/Documents/MyProjects/MyApp/app/client/.packages -Ddart.vm.profile=false
-Ddart.vm.product=false --bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts
--track-widget-creation --filesystem-scheme org-dartlang-root --initialize-from-dill build/cache.dill
[ +19 ms] executing: /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ +19 ms] Exit code 0 from: /Users/user/Library/Android/sdk/platform-tools/adb -s emulator-5554 shell -x logcat -v time -t 1
[ +14 ms] --------- beginning of main
03-23 14:59:10.281 I/BackgroundDexOptService( 1661): Pinning optimized code {}
[ +15 ms] <- compile package:my_app/main.dart
[ +12 ms] executing: /Users/user/Library/Android/sdk/platform-tools/adb version
[ +24 ms] Android Debug Bridge version 1.0.41
Version 29.0.5-5949299
Installed as /Users/user/Library/Android/sdk/platform-tools/adb
[ +2 ms] executing: /Users/user/Library/Android/sdk/platform-tools/adb start-server
[ +11 ms] Building APK
[ +19 ms] Running Gradle task 'assembleDebug'...
[ +2 ms] gradle.properties already sets `android.enableR8`
[ +3 ms] Using gradle from /Users/user/Documents/MyProjects/MyApp/app/client/android/gradlew.
[ ] /Users/user/Documents/MyProjects/MyApp/app/client/android/gradlew mode: 33261 rwxr-xr-x.
[ +184 ms] executing: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[ +10 ms] Exit code 0 from: /usr/bin/plutil -convert json -o - /Applications/Android Studio.app/Contents/Info.plist
[ ] {"CFBundleName":"Android
Studio","JVMOptions":{"ClassPath":"$APP_PACKAGE\/Contents\/lib\/bootstrap.jar:$APP_PACKAGE\/Contents\/lib\/extensions.jar:$APP_PACKAGE\/Contents\/lib\/util.jar:$APP_PACKAGE\/Contents\/lib\/jdom.ja
r:$APP_PACKAGE\/Contents\/lib\/log4j.jar:$APP_PACKAGE\/Contents\/lib\/trove4j.jar:$APP_PACKAGE\/Contents\/lib\/jna.jar","JVMVersion":"1.8*,1.8+","WorkingDirectory":"$APP_PACKAGE\/Contents\/bin","M
ainClass":"com.intellij.idea.Main","Properties":{"idea.paths.selector":"AndroidStudio3.5","idea.executable":"studio","idea.platform.prefix":"AndroidStudio","idea.home.path":"$APP_PACKAGE\/Contents
"}},"LSArchitecturePriority":["x86_64"],"CFBundleVersion":"AI-191.8026.42.35.5977832","CFBundleDevelopmentRegion":"English","CFBundleDocumentTypes":[{"CFBundleTypeName":"Android Studio Project
File","CFBundleTypeExtensions":["ipr"],"CFBundleTypeRole":"Editor","CFBundleTypeIconFile":"studio.icns"},{"CFBundleTypeName":"All
documents","CFBundleTypeExtensions":["*"],"CFBundleTypeOSTypes":["****"],"CFBundleTypeRole":"Editor","LSTypeIsPackage":false}],"NSSupportsAutomaticGraphicsSwitching":true,"CFBundlePackageType":"AP
PL","CFBundleIconFile":"studio.icns","NSHighResolutionCapable":true,"CFBundleShortVersionString":"3.5","CFBundleInfoDictionaryVersion":"6.0","CFBundleExecutable":"studio","LSRequiresNativeExecutio
n":"YES","CFBundleURLTypes":[{"CFBundleTypeRole":"Editor","CFBundleURLName":"Stacktrace","CFBundleURLSchemes":["idea"]}],"CFBundleIdentifier":"com.google.android.studio","LSApplicationCategoryType
":"public.app-category.developer-tools","CFBundleSignature":"????","LSMinimumSystemVersion":"10.8","CFBundleGetInfoString":"Android Studio 3.5, build AI-191.8026.42.35.5977832. Copyright JetBrains
s.r.o., (c) 2000-2019"}
[ +25 ms] executing: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[ +79 ms] Exit code 0 from: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java -version
[ ] openjdk version "1.8.0_202-release"
OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b49-5587405)
OpenJDK 64-Bit Server VM (build 25.202-b49-5587405, mixed mode)
[ +2 ms] executing: [/Users/user/Documents/MyProjects/MyApp/app/client/android/] /Users/user/Documents/MyProjects/MyApp/app/client/android/gradlew -Pverbose=true
-Ptarget-platform=android-x86 -Ptarget=/Users/user/Documents/MyProjects/MyApp/app/client/lib/main.dart -Ptrack-widget-creation=true -Pfilesystem-scheme=org-dartlang-root assembleDebug
[ +780 ms]
Compiler message:
[ +2 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:1:8: Error: Not found: 'dart:html'
[ ] import 'dart:html';
[ ] ^
[ +124 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js.dart:8:1: Error: Not found: 'dart:js'
[ ] export 'dart:js' show allowInterop, allowInteropCaptureThis;
[ ] ^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
[ ] export 'dart:js_util';
[ ] ^
[+3045 ms] > Task :app:compileFlutterBuildDebug
[ ] [ +26 ms] executing: [/Users/user/flutter/] git -c log.showSignature=false log -n 1 --pretty=format:%H
[ ] [ +42 ms] Exit code 0 from: git -c log.showSignature=false log -n 1 --pretty=format:%H
[ +1 ms] [ ] 3998549d529cb21488e5720a4c81cb20015e18e6
[ ] [ ] executing: [/Users/user/flutter/] git describe --match v*.*.* --first-parent --long --tags
[ ] [ +24 ms] Exit code 0 from: git describe --match v*.*.* --first-parent --long --tags
[ ] [ ] v1.16.1-26-g3998549d5
[ ] [ +10 ms] executing: [/Users/user/flutter/] git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ +13 ms] Exit code 0 from: git rev-parse --abbrev-ref --symbolic @{u}
[ ] [ ] origin/beta
[ ] [ ] executing: [/Users/user/flutter/] git ls-remote --get-url origin
[ ] [ +14 ms] Exit code 0 from: git ls-remote --get-url origin
[ ] [ ] https://github.com/flutter/flutter.git
[ ] [ +85 ms] executing: [/Users/user/flutter/] git rev-parse --abbrev-ref HEAD
[ ] [ +19 ms] Exit code 0 from: git rev-parse --abbrev-ref HEAD
[ ] [ ] beta
[ ] [ +30 ms] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ +3 ms] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ +9 ms] Artifact Instance of 'MaterialFonts' is not required, skipping update.
[ +38 ms] [ ] Artifact Instance of 'GradleWrapper' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidMavenArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidGenSnapshotArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'AndroidInternalBuildArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterWebSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterSdk' is not required, skipping update.
[ ] [ ] Artifact Instance of 'WindowsEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxEngineArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'LinuxFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'MacOSFuchsiaSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerSDKArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FlutterRunnerDebugSymbols' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'IosUsbArtifacts' is not required, skipping update.
[ ] [ ] Artifact Instance of 'FontSubsetArtifacts' is not required, skipping update.
[ ] [ +105 ms] Initializing file store
[ ] [ +5 ms] Done initializing file store
[ ] [ +873 ms] kernel_snapshot: Starting due to {}
[ +1 ms] [ +18 ms] /Users/user/flutter/bin/cache/dart-sdk/bin/dart /Users/user/flutter/bin/cache/artifacts/engine/darwin-x64/frontend_server.dart.snapshot --sdk-root
/Users/user/flutter/bin/cache/artifacts/engine/common/flutter_patched_sdk/ --target=flutter -Ddart.developer.causal_async_stacks=true -Ddart.vm.profile=false -Ddart.vm.product=false
--bytecode-options=source-positions,local-var-info,debugger-stops,instance-field-initializers,keep-unreachable-code,avoid-closure-call-instructions --enable-asserts --track-widget-creation
--no-link-platform --packages /Users/user/Documents/MyProjects/MyApp/app/client/.packages --output-dill
/Users/user/Documents/MyProjects/MyApp/app/client/.dart_tool/flutter_build/6b59d9bceb88d1484aeb7856588a404c/app.dill --depfile
/Users/user/Documents/MyProjects/MyApp/app/client/.dart_tool/flutter_build/6b59d9bceb88d1484aeb7856588a404c/kernel_snapshot.d package:my_app/main.dart
[ +3 ms] [ +16 ms] Invalid depfile: /Users/user/Documents/MyProjects/MyApp/app/client/.dart_tool/flutter_build/6b59d9bceb88d1484aeb7856588a404c/kernel_snapshot.d
[ ] [ +2 ms] Invalid depfile: /Users/user/Documents/MyProjects/MyApp/app/client/.dart_tool/flutter_build/6b59d9bceb88d1484aeb7856588a404c/kernel_snapshot.d
[ +822 ms] [+1168 ms]
[ ] Compiler message:
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:1:8: Error: Not found: 'dart:html'
[ ] [ ] import 'dart:html';
[ ] [ ] ^
[ +97 ms] [ +60 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js.dart:8:1: Error: Not found: 'dart:js'
[ ] [ ] export 'dart:js' show allowInterop, allowInteropCaptureThis;
[ ] [ ] ^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/js-0.6.1+1/lib/js_util.dart:8:1: Error: Not found: 'dart:js_util'
[ ] [ ] export 'dart:js_util';
[ ] [ ] ^
[ +569 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:306:25: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[ ] - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] var nextWrapper = allowInterop((firebase_interop.UserJsImpl user) {
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:310:26: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[ ] - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] var errorWrapper = allowInterop((e) => _changeController.addError(e));
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/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' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] var nextWrapper = allowInterop((firebase_interop.UserJsImpl user) {
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:345:11: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[ ] - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] allowInterop((e) => _idTokenChangedController.addError(e));
[ +45 ms] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:164:9: Error: The method 'allowInterop' isn't defined for the class
'DatabaseReference<T>'.
[ ] - 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/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))));
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:166:26: Error: The method 'allowInterop' isn't defined for the class
'DatabaseReference<T>'.
[ ] - 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] var onCompleteWrap = allowInterop(
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:301:24: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
[ ] - 'Query' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] var callbackWrap = allowInterop((database_interop.DataSnapshotJsImpl data,
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:325:30: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
[ ] - 'Query' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] jsObject.once(eventType, allowInterop(
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:402:22: Error: The method 'allowInterop' isn't defined for the class 'DataSnapshot'.
[ ] - 'DataSnapshot' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] var actionWrap = allowInterop((d) => action(DataSnapshot.getInstance(d)));
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:72:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
[ ] - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] final nextWrapper = allowInterop((payload) {
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:75:28: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
[ ] - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] final errorWrapper = allowInterop((e) {
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:87:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
[ ] - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] final nextWrapper = allowInterop((payload) {
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:97:27: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
[ ] - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] final nextWrapper = allowInterop((_) => null);
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:98:28: Error: The method 'allowInterop' isn't defined for the class 'Messaging'.
[ ] - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] final errorWrapper = allowInterop((e) {
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:317:11: Error: The method 'allowInterop' isn't defined for the class 'UploadTask'.
[ ] - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] allowInterop((storage_interop.UploadTaskSnapshotJsImpl data) {
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:321:26: Error: The method 'allowInterop' isn't defined for the class 'UploadTask'.
[ ] - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] var errorWrapper = allowInterop((e) => _changeController.addError(e));
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:322:26: Error: The method 'allowInterop' isn't defined for the class 'UploadTask'.
[ ] - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] var onCompletion = allowInterop(() => _changeController.close());
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:194:7: Error: Method not found: 'hasProperty'.
[ ] if (js.hasProperty(error, 'message')) {
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:195:19: Error: Method not found: 'getProperty'.
[ ] var message = js.getProperty(error, 'message');
[ ] ^^^^^^^^^^^
[ +5 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:29:7: Error: Method not found: 'hasProperty'.
[ ] if (util.hasProperty(jsObject, 'firestore') &&
[ +56 ms] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:30:7: Error: Method not found: 'hasProperty'.
[ ] util.hasProperty(jsObject, 'id') &&
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:31:7: Error: Method not found: 'hasProperty'.
[ ] util.hasProperty(jsObject, 'parent')) {
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:37:7: Error: Method not found: 'hasProperty'.
[ ] if (util.hasProperty(jsObject, 'latitude') &&
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:38:7: Error: Method not found: 'hasProperty'.
[ ] util.hasProperty(jsObject, 'longitude') &&
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:44:15: Error: Method not found: 'getProperty'.
[ ] var proto = util.getProperty(jsObject, '__proto__');
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:46:7: Error: Method not found: 'hasProperty'.
[ +3 ms] if (util.hasProperty(proto, 'toDate') &&
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:47:7: Error: Method not found: 'hasProperty'.
[ ] util.hasProperty(proto, 'toMillis')) {
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:52:7: Error: Method not found: 'hasProperty'.
[ ] if (util.hasProperty(proto, 'isEqual') &&
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:53:7: Error: Method not found: 'hasProperty'.
[ +43 ms] util.hasProperty(proto, 'toBase64')) {
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:67:24: Error: Method not found: 'getProperty'.
[ ] map[key] = dartify(util.getProperty(jsObject, key));
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:91:17: Error: Method not found: 'newObject'.
[ ] var jsMap = util.newObject();
[ ] ^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:93:7: Error: Method not found: 'setProperty'.
[ ] util.setProperty(jsMap, key, jsify(value));
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:116:12: Error: Method not found: 'allowInterop'.
[ ] return allowInterop(dartObject);
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:124:5: Error: Method not found: 'callMethod'.
[ ] util.callMethod(jsObject, method, args);
[ ] ^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:139:19: Error: Method not found: 'promiseToFuture'.
[ ] value = await util.promiseToFuture(thenable);
[ ] ^^^^^^^^^^^^^^^
[ +64 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:141:9: Error: Method not found: 'hasProperty'.
[ ] if (util.hasProperty(e, 'code')) {
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:152:27: Error: Method not found: 'allowInterop'.
[ ] return PromiseJsImpl<S>(allowInterop((
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:165:5: Error: Method not found: 'allowInterop'.
[ ] allowInterop(c.completeError);
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:173:22: Error: Method not found: 'getProperty'.
[ +8 ms] String get code => util.getProperty(_source, 'code');
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:176:25: Error: Method not found: 'getProperty'.
[ ] String get message => util.getProperty(_source, 'message');
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:179:22: Error: Method not found: 'getProperty'.
[ ] String get name => util.getProperty(_source, 'name');
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:182:32: Error: Method not found: 'getProperty'.
[ ] Object get serverResponse => util.getProperty(_source, 'serverResponse');
[ ] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:185:23: Error: Method not found: 'getProperty'.
[ ] String get stack => util.getProperty(_source, 'stack');
[ +2 ms] ^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:105:30: Error: The method 'allowInterop' isn't defined for the class 'Firestore'.
[ ] - 'Firestore' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] var updateFunctionWrap = allowInterop((transaction) =>
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:306:11: Error: The method 'allowInterop' isn't defined for the class 'DocumentReference'.
[ +1 ms] - 'DocumentReference' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] allowInterop((firestore_interop.DocumentSnapshotJsImpl snapshot) {
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:310:26: Error: The method 'allowInterop' isn't defined for the class 'DocumentReference'.
[ +8 ms] - 'DocumentReference' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ +69 ms] var errorWrapper = allowInterop((e) => controller.addError(e));
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:445:9: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
[ ] - 'Query' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] allowInterop((firestore_interop.QuerySnapshotJsImpl snapshot) {
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:449:24: Error: The method 'allowInterop' isn't defined for the class 'Query<T>'.
[ +95 ms] - 'Query' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] var errorWrapper = allowInterop((e) => controller.addError(e));
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:775:9: Error: The method 'allowInterop' isn't defined for the class 'QuerySnapshot'.
[ ] - 'QuerySnapshot' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ +3 ms] allowInterop((s) => callback(DocumentSnapshot.getInstance(s)));
[ ] ^^^^^^^^^^^^
[ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/interop/js_interop.dart:17:7: Error: Method not found: 'hasProperty'.
[ ] if (util.hasProperty(jsObject, 'toDateString')) {
[ ] ^^^^^^^^^^^
[+3378 ms] [+4457 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:306:25: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[ ] [ ] - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] var nextWrapper = allowInterop((firebase_interop.UserJsImpl user) {
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:310:26: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[ ] [ ] - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] var errorWrapper = allowInterop((e) => _changeController.addError(e));
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/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' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] var nextWrapper = allowInterop((firebase_interop.UserJsImpl user) {
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart:345:11: Error: The method 'allowInterop' isn't defined for the class 'Auth'.
[ ] [ ] - 'Auth' is from 'package:firebase/src/auth.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/auth.dart').
[ +62 ms] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] allowInterop((e) => _idTokenChangedController.addError(e));
[ ] [ ] ^^^^^^^^^^^^
[ ] [ +7 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:164:9: Error: The method 'allowInterop' isn't defined for the class
'DatabaseReference<T>'.
[ ] [ ] - 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ +1 ms] [ ] allowInterop((update) => jsify(transactionUpdate(dartify(update))));
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:166:26: Error: The method 'allowInterop' isn't defined for the class
'DatabaseReference<T>'.
[ ] [ ] - 'DatabaseReference' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[ +1 ms] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] var onCompleteWrap = allowInterop(
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:301:24: Error: The method 'allowInterop' isn't defined for the class
'Query<T>'.
[ +59 ms] [ ] - 'Query' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] var callbackWrap = allowInterop((database_interop.DataSnapshotJsImpl data,
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:325:30: Error: The method 'allowInterop' isn't defined for the class
'Query<T>'.
[ ] [ ] - 'Query' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] jsObject.once(eventType, allowInterop(
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart:402:22: Error: The method 'allowInterop' isn't defined for the class
'DataSnapshot'.
[ ] [ ] - 'DataSnapshot' is from 'package:firebase/src/database.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/database.dart').
[ +61 ms] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] var actionWrap = allowInterop((d) => action(DataSnapshot.getInstance(d)));
[ ] [ ] ^^^^^^^^^^^^
[ ] [ +2 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:72:27: Error: The method 'allowInterop' isn't defined for the class
'Messaging'.
[ ] [ ] - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] final nextWrapper = allowInterop((payload) {
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:75:28: Error: The method 'allowInterop' isn't defined for the class
'Messaging'.
[ ] [ ] - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] final errorWrapper = allowInterop((e) {
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:87:27: Error: The method 'allowInterop' isn't defined for the class
'Messaging'.
[ ] [ ] - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] final nextWrapper = allowInterop((payload) {
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:97:27: Error: The method 'allowInterop' isn't defined for the class
'Messaging'.
[ ] [ ] - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] final nextWrapper = allowInterop((_) => null);
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart:98:28: Error: The method 'allowInterop' isn't defined for the class
'Messaging'.
[ ] [ ] - 'Messaging' is from 'package:firebase/src/messaging.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/messaging.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] final errorWrapper = allowInterop((e) {
[ ] [ ] ^^^^^^^^^^^^
[ ] [ +9 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:317:11: Error: The method 'allowInterop' isn't defined for the class
'UploadTask'.
[ ] [ ] - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] allowInterop((storage_interop.UploadTaskSnapshotJsImpl data) {
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:321:26: Error: The method 'allowInterop' isn't defined for the class
'UploadTask'.
[ ] [ ] - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ +50 ms] [ ] var errorWrapper = allowInterop((e) => _changeController.addError(e));
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart:322:26: Error: The method 'allowInterop' isn't defined for the class
'UploadTask'.
[ ] [ ] - 'UploadTask' is from 'package:firebase/src/storage.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/storage.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] var onCompletion = allowInterop(() => _changeController.close());
[ ] [ ] ^^^^^^^^^^^^
[ +58 ms] [ +4 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:194:7: Error: Method not found: 'hasProperty'.
[ ] [ ] if (js.hasProperty(error, 'message')) {
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/top_level.dart:195:19: Error: Method not found: 'getProperty'.
[ ] [ +1 ms] var message = js.getProperty(error, 'message');
[ ] [ ] ^^^^^^^^^^^
[ ] [ +29 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:29:7: Error: Method not found: 'hasProperty'.
[ ] [ ] if (util.hasProperty(jsObject, 'firestore') &&
[ ] [ ] ^^^^^^^^^^^
[ +87 ms] [ +2 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:30:7: Error: Method not found: 'hasProperty'.
[ ] [ ] util.hasProperty(jsObject, 'id') &&
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:31:7: Error: Method not found: 'hasProperty'.
[ ] [ ] util.hasProperty(jsObject, 'parent')) {
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:37:7: Error: Method not found: 'hasProperty'.
[ ] [ ] if (util.hasProperty(jsObject, 'latitude') &&
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:38:7: Error: Method not found: 'hasProperty'.
[ ] [ ] util.hasProperty(jsObject, 'longitude') &&
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:44:15: Error: Method not found: 'getProperty'.
[ ] [ ] var proto = util.getProperty(jsObject, '__proto__');
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:46:7: Error: Method not found: 'hasProperty'.
[ ] [ ] if (util.hasProperty(proto, 'toDate') &&
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:47:7: Error: Method not found: 'hasProperty'.
[ ] [ ] util.hasProperty(proto, 'toMillis')) {
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:52:7: Error: Method not found: 'hasProperty'.
[ ] [ ] if (util.hasProperty(proto, 'isEqual') &&
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:53:7: Error: Method not found: 'hasProperty'.
[ ] [ ] util.hasProperty(proto, 'toBase64')) {
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:67:24: Error: Method not found: 'getProperty'.
[ ] [ ] map[key] = dartify(util.getProperty(jsObject, key));
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:91:17: Error: Method not found: 'newObject'.
[ ] [ ] var jsMap = util.newObject();
[ ] [ ] ^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:93:7: Error: Method not found: 'setProperty'.
[ ] [ ] util.setProperty(jsMap, key, jsify(value));
[ +1 ms] [ +1 ms] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:116:12: Error: Method not found: 'allowInterop'.
[ ] [ ] return allowInterop(dartObject);
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:124:5: Error: Method not found: 'callMethod'.
[ ] [ ] util.callMethod(jsObject, method, args);
[ ] [ ] ^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:139:19: Error: Method not found: 'promiseToFuture'.
[ ] [ ] value = await util.promiseToFuture(thenable);
[ ] [ ] ^^^^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:141:9: Error: Method not found: 'hasProperty'.
[ ] [ ] if (util.hasProperty(e, 'code')) {
[ ] [ +1 ms] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:152:27: Error: Method not found: 'allowInterop'.
[ ] [ ] return PromiseJsImpl<S>(allowInterop((
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:165:5: Error: Method not found: 'allowInterop'.
[ ] [ ] allowInterop(c.completeError);
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:173:22: Error: Method not found: 'getProperty'.
[ ] [ ] String get code => util.getProperty(_source, 'code');
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:176:25: Error: Method not found: 'getProperty'.
[ ] [ ] String get message => util.getProperty(_source, 'message');
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:179:22: Error: Method not found: 'getProperty'.
[ ] [ ] String get name => util.getProperty(_source, 'name');
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:182:32: Error: Method not found: 'getProperty'.
[ ] [ ] Object get serverResponse => util.getProperty(_source, 'serverResponse');
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/utils.dart:185:23: Error: Method not found: 'getProperty'.
[ ] [ ] String get stack => util.getProperty(_source, 'stack');
[ ] [ ] ^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:105:30: Error: The method 'allowInterop' isn't defined for the class
'Firestore'.
[ ] [ ] - 'Firestore' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] var updateFunctionWrap = allowInterop((transaction) =>
[ ] [ ] ^^^^^^^^^^^^
[ ] [ +3 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:306:11: Error: The method 'allowInterop' isn't defined for the class
'DocumentReference'.
[ +47 ms] [ ] - 'DocumentReference' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[ +1 ms] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] allowInterop((firestore_interop.DocumentSnapshotJsImpl snapshot) {
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:310:26: Error: The method 'allowInterop' isn't defined for the class
'DocumentReference'.
[ ] [ ] - 'DocumentReference' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] var errorWrapper = allowInterop((e) => controller.addError(e));
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:445:9: Error: The method 'allowInterop' isn't defined for the class
'Query<T>'.
[ +45 ms] [ ] - 'Query' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] allowInterop((firestore_interop.QuerySnapshotJsImpl snapshot) {
[ ] [ ] ^^^^^^^^^^^^
[ ] [ ] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:449:24: Error: The method 'allowInterop' isn't defined for the class
'Query<T>'.
[ ] [ ] - 'Query' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ ] [ ] var errorWrapper = allowInterop((e) => controller.addError(e));
[ ] [ ] ^^^^^^^^^^^^
[ +1 ms] [ +5 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart:775:9: Error: The method 'allowInterop' isn't defined for the class
'QuerySnapshot'.
[ ] [ ] - 'QuerySnapshot' is from 'package:firebase/src/firestore.dart' ('../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/firestore.dart').
[ ] [ ] Try correcting the name to the name of an existing method, or defining a method named 'allowInterop'.
[ +47 ms] [ ] allowInterop((s) => callback(DocumentSnapshot.getInstance(s)));
[ ] [ ] ^^^^^^^^^^^^
[ ] [ +13 ms] ../../../../../flutter/.pub-cache/hosted/pub.dartlang.org/firebase-7.2.1/lib/src/interop/js_interop.dart:17:7: Error: Method not found: 'hasProperty'.
[ ] [ ] if (util.hasProperty(jsObject, 'toDateString')) {
[ ] [ ] ^^^^^^^^^^^
[+2023 ms] [+2408 ms] Unhandled exception:
[ ] FileSystemException(uri=org-dartlang-untranslatable-uri:dart%3Ahtml; message=StandardFileSystem only supports file:* and data:* URIs)
[ ] #0 StandardFileSystem.entityForUri (package:front_end/src/api_prototype/standard_file_system.dart:33:7)
[ ] #1 asFileUri (package:vm/kernel_front_end.dart:567:37)
[ ] #2 writeDepfile (package:vm/kernel_front_end.dart:760:21)
[ ] <asynchronous suspension>
[ ] #3 FrontendCompiler.compile (package:frontend_server/frontend_server.dart:535:15)
[ ] <asynchronous suspension>
[ ] #4 _FlutterFrontendCompiler.compile (package:flutter_frontend_server/server.dart:40:22)
[ ] #5 starter (package:flutter_frontend_server/server.dart:177:27)
[ ] #6 main (file:///b/s/w/ir/cache/builder/src/flutter/flutter_frontend_server/bin/starter.dart:8:30)
[ ] #7 _startIsolate.<anonymous closure> (dart:isolate-patch/isolate_patch.dart:299:32)
[ ] #8 _RawReceivePortImpl._handleMessage (dart:isolate-patch/isolate_patch.dart:168:12)
[ +95 ms] [ +162 ms] Persisting file store
[ ] [ +5 ms] Done persisting file store
[ ] [ ] Target kernel_snapshot failed: Exception: Errors during snapshot creation: null
[ +98 ms] [ +9 ms] "flutter assemble" took 9,494ms.
[ ] build failed.
[ ] #0 throwToolExit (package:flutter_tools/src/base/common.dart:14:3)
[ ] #1 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:193:7)
[ ] #2 _rootRunUnary (dart:async/zone.dart:1141:38)
[ ] #3 _CustomZone.runUnary (dart:async/zone.dart:1034:19)
[ ] #4 _FutureListener.handleValue (dart:async/future_impl.dart:140:18)
[ ] #5 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:681:45)
[ ] #6 Future._propagateToListeners (dart:async/future_impl.dart:710:32)
[ ] #7 Future._completeWithValue (dart:async/future_impl.dart:525:5)
[ ] #8 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:34:15)
[ ] #9 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:294:13)
[ ] #10 BuildSystem.build (package:flutter_tools/src/build_system/build_system.dart)
[ ] #11 _rootRunUnary (dart:async/zone.dart:1141:38)
[ ] #12 _CustomZone.runUnary (dart:async/zone.dart:1034:19)
[ ] #13 _FutureListener.handleValue (dart:async/future_impl.dart:140:18)
[ ] #14 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:681:45)
[ ] #15 Future._propagateToListeners (dart:async/future_impl.dart:710:32)
[ ] #16 Future._completeWithValue (dart:async/future_impl.dart:525:5)
[ ] #17 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:34:15)
[ ] #18 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:294:13)
[ ] #19 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart)
[ ] #20 _rootRunUnary (dart:async/zone.dart:1141:38)
[ ] #21 _CustomZone.runUnary (dart:async/zone.dart:1034:19)
[ +38 ms] #22 _FutureListener.handleValue (dart:async/future_impl.dart:140:18)
[ ] #23 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:681:45)
[ ] #24 Future._propagateToListeners (dart:async/future_impl.dart:710:32)
[ ] #25 Future._completeWithValue (dart:async/future_impl.dart:525:5)
[ ] #26 Future.wait.<anonymous closure> (dart:async/future.dart:401:22)
[ ] #27 _rootRunUnary (dart:async/zone.dart:1141:38)
[ ] #28 _CustomZone.runUnary (dart:async/zone.dart:1034:19)
[ ] #29 _FutureListener.handleValue (dart:async/future_impl.dart:140:18)
[ ] #30 Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:681:45)
[ ] #31 Future._propagateToListeners (dart:async/future_impl.dart:710:32)
[ +32 ms] #32 Future._completeWithValue (dart:async/future_impl.dart:525:5)
[ ] #33 _AsyncAwaitCompleter.complete (dart:async-patch/async_patch.dart:34:15)
[ ] #34 _completeOnAsyncReturn (dart:async-patch/async_patch.dart:294:13)
[ ] #35 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart)
[ ] #36 _asyncErrorWrapperHelper.<anonymous closure> (dart:async-patch/async_patch.dart:82:45)
[ ] #37 _rootRunBinary (dart:async/zone.dart:1153:38)
[ ] #38 _CustomZone.runBinary (dart:async/zone.dart:1042:19)
[ ] #39 _FutureListener.handleError (dart:async/future_impl.dart:154:20) |
This error is almost certainly caused by depending on web only code in a mobile flutter application. If you think this is a bug with tooling then we'll need an example project that reproduces the issue |
This is definitely an issue with dependencies, but I don't explicitly depend on web only code in my app. As you can see from my pubspec.yaml, there's no web packages. |
I had the exact same issue. My problem was that I imported package:url_launcher_web/url_launcher_web.dart which apparently you're not supposed to do. It was an unused import anyway, so I removed it and then my mobile and web app worked fine. |
I don't have that one. But I do have |
my case i also have url_launcher_web. but only on pubspec, i do not import it in actual project file, but still build error will be raised |
/cc @ferhatb please dedupe |
Checked, other issues not dupe. /cc @ditman @jonahwilliams : Do you know what would cause firebase_top_level.dart to be compiled in native builds? |
The @agordeev can you please trying to see if you have imports from Another thing, @jonahwilliams: Didn't we have some problems a few weeks ago where conditional imports were not working properly? Any possibility that issue creeped into |
@ditman this happens on master as well. I figured that out: the issue was caused by Thank you all for helping. |
what is the solution in this case ? |
@majedqatousa the solution for now is: do not import web-only libraries in code that is supposed to run in mobile. (Normally you can tell what platforms a package supports by looking at their pub.dev page, for example check package:firebase, it only lists DART: JS and FLUTTER: WEB as platforms. Compare with package:http, which lists DART: NATIVE, JS, and FLUTTER: ANDROID, IOS, WEB) |
I'm getting this error when I try to use the same code base with websockets for web and firebase for app. I have some code that pulls in this:
And then for web (kisWeb == true) it does this:
Is there a way that I can build this for app without having to comment it out every time? |
@jdeltoft , If you have a function/class that have different implementation on web you can always do the following: In your main.dart: import 'native_work.dart'
if (dart.library.html) 'web_work.dart' as my_worker;
my_worker.doSomething(); In native_work.dart: import 'dart:ui';
import 'dart:isolate';
void doSomething() {
// TODO: use isolate
} In web_work.dart: import 'dart:html' as html;
void doSomething() {
// TODO: launch webworker...
} |
I thought dependency it self caused the build issue, because having dependancy (pubspec) & removing all imports -> build failed. removing dependancy (pubspec) & removing all imports -> now worked. |
Could everyone who still has this problem please file a new issue with the exact descriptions what happens, logs and the output of 'flutter doctor -v' please. |
@ferhatb Just FYI I got good advice here: |
Now that firestore is for web too. It should support dart.html. Actually, when building for Android or IOS, it should only ignore this. |
Then how would I access Firestore from my application if I do not import the firestore package? |
The package name is very-very ambiguous. It's intended to be used for web only, but its name doesn't clearly says that. Also, the error message isn't clear too. |
Hi everyone, I'm going through the Flutter onboarding "hello world" tutorial using Windows 10. I turned on the beta web capability and Flutter doctor passes all tests. When trying to reload at step 6 of the tutorial, the two experimental dart imports cause a failure. Commenting out the two automated dart imports allows the tutorial code to execute as described: flutter doctorDoctor summary (to see all details, run flutter doctor -v): [√] Flutter (Channel beta, 1.20.0-7.3.pre, on Microsoft Windows [Version 10.0.18363.959], locale en-US) [√] Android toolchain - develop for Android devices (Android SDK version 30.0.1) [√] Chrome - develop for the web [√] Android Studio (version 4.0) [√] Connected device (4 available)flutter run --verboseflutter run --verbose [ +95 ms] ensureAnalyticsSent: 94ms main.dart// Copyright 2018 The Flutter team. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file.import 'dart:html'; import 'package:flutter/material.dart'; void main() => runApp(MyApp()); class MyApp extends StatelessWidget { class RandomWords extends StatefulWidget { class _RandomWordsState extends State { Widget _buildSuggestions() {
} Widget _buildRow(WordPair pair) { @OverRide pubspec.yamlname: startup_namer description: A new Flutter application.The following line prevents the package from being accidentally published topub.dev using
|
@brent-stone please create a new issue in the flutter/website repo, since this looks like a problem with a codelab: https://github.com/flutter/website/issues Otherwise, only people who interacted with this ticket in the past will see your message. Thanks! |
I don't Know from where these imports comes from - import 'dart:html'; I deleted this and problem seems to be resolved. Something bring to your notice that above some mates are commenting that after importing firebase package they got the error, I got the same error without importing the package however i was working with firebase through http package. |
How do you stop flutter from trying to build web_work.dart in the Android/iOS build and failing to compile it? Edit: I have no code that imports web_work.dart, but still when performing |
If you just want to run your flutter app on mobiles, Removing |
I made a sample project that was really simple and it worked fine just like you write. Then I found out that VS Code auto-import in some class has brought in the web-version dart file and not the proxy import file. Also I had used a plugin that had web-only code and apparently need to guard importing that plugin via a proxy import as well. Thank you. |
This comment has been minimized.
This comment has been minimized.
Yeah, you're right! I was just trying to run on mobile |
just Remove dart.html from import section where ever you import this and try again. I am sure this will work |
Why does it auto import |
Tested this in local with both iOS simulator and chrome browser. |
Hey everyone, I've been trying to do the same thing on a package I've been working on. It's just an oauth2 wrapper. I believe I have followed all of the correct syntax to create both a web client and a mobile client together as follows:
And when I include it in my applications, I have no issues. I can import it into a native android app, or a Flutter web app, and it seems to function exactly as I want it to in both. However, when I try to publish it on pub.dev, it says that it does not support multiple platforms:
Has anyone else had trouble with this? |
Thank you it was my same problem you saved my life |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Steps to Reproduce
I'm unable to build my project for Android/iOS. The build fails with this error:
Full Error Logs
I did
flutter clean
but that didn't help.Don't know which Flutter version caused this.
flutter doctor
The text was updated successfully, but these errors were encountered: