Skip to content
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

Unable to create RequestInit for fetch #12

Closed
jbrownsw opened this issue Apr 29, 2022 · 2 comments
Closed

Unable to create RequestInit for fetch #12

jbrownsw opened this issue Apr 29, 2022 · 2 comments

Comments

@jbrownsw
Copy link

import 'package:js_bindings/js_bindings.dart';

void main() {
  var init = RequestInit(
      method: 'GET',
      referrer: '',
      referrerPolicy: ReferrerPolicy.origin,
      mode: RequestMode.cors,
      credentials: RequestCredentials.omit,
      cache: RequestCache.noCache,
      redirect: RequestRedirect.follow,
      integrity: '',
      keepalive: true);
}

This results in:
JSNoSuchMethodError (TypeError: Cannot read properties of undefined (reading '|staticInteropFactoryStub'))

I'm using the latest package version 0.0.6.

@jodinathan
Copy link
Owner

it is a bug in the sdk, here is the issue

@jodinathan
Copy link
Owner

this is fixed with the SDK 2.18

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

No branches or pull requests

2 participants