title: Flutter web - FirebaseCloud collection query and get fails with NoSuchMethodError : invalid member on null: 'includeMetadataChanges'
body: <p>Hi Im making app with Flutter for Android, iOS, Web</p>
  <p>After a user sign in, Dashboard view loads all documents from collection 'projects'.</p>
  <p>But error below arise without any further information.</p>
  <pre><code>[cloud_firestore/unknown] NoSuchMethodError: invalid member on null: 'includeMetadataChanges'
  </code></pre>
  <p>My code to load documents is..</p>
  <pre><code>static Future&lt;List&lt;Project&gt;&gt; getProjects(String userID) async {
      try {
        var user = FirebaseAuth.instance.currentUser;
        var db = FirebaseFirestore.instance;
  
        var colRef = db
            .collection(&quot;users&quot;)
            .doc(user.uid)
            .collection(&quot;projects&quot;)
            .orderBy(&quot;modifiedTime&quot;, descending: true);
        var documents = await colRef.get();
        var list = documents.docs.map((document) {
          var data = document.data();
          return Project(
              data[&quot;owner&quot;],
              data[&quot;id&quot;],
              data[&quot;name&quot;],
              data[&quot;description&quot;],
              data[&quot;createdTime&quot;].toDate(),
              data[&quot;modifiedTime&quot;].toDate());
        }).toList();
  
        return list;
      } catch (exception) {
        print(exception);
        return null;
      }
    }
  </code></pre>
  <p>After researching, I finally can print stacktrace with below code modified slightly from above.</p>
  <pre><code>      colRef.get().onError((error, stackTrace) 
        {
          print(stackTrace);
          print(error);
        });
  </code></pre>
  <p>and result is..</p>
  <pre><code>C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/private/ddc_runtime/errors.dart 236:49  throw_
  packages/cloud_firestore_web/src/query_web.dart 127:7                                                                      get
  C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 45:50            &lt;fn&gt;
  C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/zone.dart 1613:54                                          runUnary
  C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 155:18                                    handleValue
  C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 707:44                                    handleValueCallback
  C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 736:13                                    _propagateToListeners
  C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 542:5                                     [_completeWithValue]
  C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/future_impl.dart 580:7                                     callback
  C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/schedule_microtask.dart 40:11                              _microtaskLoop
  C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/async/schedule_microtask.dart 49:5                               _startMicrotaskLoop
  C:/b/s/w/ir/cache/builder/src/out/host_debug/dart-sdk/lib/_internal/js_dev_runtime/patch/async_patch.dart 166:15           &lt;fn&gt;
  [cloud_firestore/unknown] NoSuchMethodError: invalid member on null: 'includeMetadataChanges'
  </code></pre>
  <p>After some googling, there is a stackoverflow question and someone said this is version issue and change the version of library from index.html to 7.22.1
  Im currently working on 8.2.7, but replacing it to 7.22.1 also give me the same result.</p>
  <p>This occurs only in web platform. With same code, Android works just fine. iOS never tested yet.</p>
  <p>At last, this is libraries that Im using right now.</p>
  <p>pubspec.yaml</p>
  <pre><code>  firebase_core: &quot;^0.7.0&quot;
    firebase_auth: &quot;^0.20.0+1&quot;
    google_sign_in: &quot;^4.5.1&quot;
    email_validator: &quot;^1.0.5&quot;
    intl: &quot;^0.16.1&quot;
    cloud_firestore: &quot;^0.16.0&quot;
    property_change_notifier: &quot;^0.2.0&quot;
  </code></pre>
  <p>main.html</p>
  <pre><code>&lt;!-- The core Firebase JS SDK is always required and must be listed first --&gt;
  &lt;script src=&quot;https://www.gstatic.com/firebasejs/8.2.7/firebase-app.js&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;https://www.gstatic.com/firebasejs/8.2.7/firebase-auth.js&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;https://www.gstatic.com/firebasejs/8.2.7/firebase-firestore.js&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;https://www.gstatic.com/firebasejs/8.2.7/firebase-analytics.js&quot;&gt;&lt;/script&gt;
  </code></pre>
  <p>Is there any way I can handle with this issue?</p>
  <p>Thank you for reading.</p>