Skip to content

Error: 'JSObject' and 'JSAny' isn't a type #472

@plchekspend

Description

@plchekspend

I'm getting this type of errors when building flutter app bundle using Flutter SDK 3.32.0 and android studio Narwhal 3 and upper

/Users/imac/.pub-cache/hosted/pub.dev/web-1.1.1/lib/src/helpers/http.dart:252:62: Error: The method 'jsify' isn't defined for the class 'Object'.

  • 'Object' is from 'dart:core'.
    Try correcting the name to the name of an existing method, or defining a method named 'jsify'.
    xhr.send(sendData is String ? sendData.toJS : sendData.jsify());

/Users/imac/.pub-cache/hosted/pub.dev/web-1.1.1/lib/src/dom/xhr.dart:178:23: Error: 'JSAny' isn't a type.
external void send([JSAny? body]);
^^^^^
/Users/imac/.pub-cache/hosted/pub.dev/web-1.1.1/lib/src/dom/xhr.dart:502:27: Error: 'JSObject' isn't a type.
extension type FormData._(JSObject _) implements JSObject {

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions