【问题标题】:How to fix Getter not found: 'nuutil'如何修复找不到 Getter:'nuutil'
【发布时间】:2021-11-13 23:40:44
【问题描述】:

我正在使用 Flutter for Web 应用程序,并且还使用 Firebase 的 Auth 和 Firestore。 在开始使用 Firestore 并做了一些工作后,我遇到了编译错误,无法调试。

错误控制台;

Launching lib\main.dart on Chrome in debug mode...
lib\main.dart:1
/C:/Flutter/.pub-cache/hosted/pub.dartlang.org/firebase_core_web-1.1.0/lib/src/interop/utils/utils.dart:112:10: Error: Getter not found: 'nuutil'.
  return nuutil.promiseToFuture(thenable);
         ^^^^^^
Failed to compile application.
Exited (sigterm)

扑医生;

[√] Flutter (Channel stable, 2.5.1, on Microsoft Windows [Version 10.0.19042.1237], locale ja-JP)
    • Flutter version 2.5.1 at C:\Flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision ffb2ecea52 (3 days ago), 2021-09-17 15:26:33 -0400
    • Engine revision b3af521a05
    • Dart version 2.14.2

[√] Android toolchain - develop for Android devices (Android SDK version 29.0.3)
    • Android SDK at D:\Android
    • Platform android-30, build-tools 29.0.3
    • Java binary at: D:\Program Files\Android\Android Studio\jre\bin\java      
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)   
    • All Android licenses accepted.

[√] Chrome - develop for the web
    • Chrome at C:\Program Files\Google\Chrome\Application\chrome.exe

[√] Android Studio (version 4.2)
    • Android Studio at D:\Program Files\Android\Android Studio
    • Flutter plugin can be installed from:
       https://plugins.jetbrains.com/plugin/9212-flutter
    • Dart plugin can be installed from:
       https://plugins.jetbrains.com/plugin/6351-dart
    • Java version OpenJDK Runtime Environment (build 11.0.8+10-b944.6842174)   

[√] VS Code (version 1.60.1)
    • VS Code at C:\Users\yukik\AppData\Local\Programs\Microsoft VS Code        
    • Flutter extension version 3.26.0

pubspec.yaml;

dependencies:

  firebase_auth: ^3.1.1
  firebase_core: ^1.6.0
  cloud_firestore: ^2.5.3

我也是

我在飞镖代码的任何地方都找不到任何可疑点,所以请告诉我你需要什么信息。可能的原因是什么?

谢谢。

【问题讨论】:

    标签: flutter dart visual-studio-code flutter-web


    【解决方案1】:

    重新安装flutter SDK解决了这个问题。

    【讨论】:

      猜你喜欢
      • 2019-08-17
      • 2022-07-25
      • 2019-10-20
      • 2020-12-18
      • 2023-03-29
      • 2019-10-19
      • 2020-02-15
      • 2023-03-19
      • 2013-11-26
      相关资源
      最近更新 更多