Skip to content

Angular 12.0.6: reader.readAsText is not a function  #20

Closed
@cjohn001

Description

@cjohn001

Environment

  • CLI: 8.0.2

  • Cross-platform modules:

  • Android Runtime: 8.0.0

  • iOS Runtime: JSC and "@nativescript/ios": "rc",

  • Plugin(s):
    "@apollo/client": "~3.3.21",
    "apollo-angular": "~2.6.0",
    "apollo3-cache-persist": "~0.9.1",
    "graphql": "^15.5.1",
    "graphql-tag": "^2.12.5",

  • NativeScript-Angular: "@nativescript/angular": "~12.0.6",

  • Angular: "~12.1.2"

Describe the bug
I am using an Apollo Angular client in my app. I just tried to migrate to Angular 12 with the app. Unfortunately, the Apollo client is not able to resolve http requests anymore. The apollo watch (watchQuery) Observable always errors out with the following error message:

reader.readAsText is not a function. (In 'reader.readAsText(blob)', 'reader.readAsText' is undefined)

To Reproduce
I assume the issue is directly related to

#15

My hope was Version 12.0.16 fixed it. Unfortunately not the case. I unfortunately do not know how to easily reproduce the issue without Apollo Angular. I hope the error message is helpful. Seems like a function signature is missing.

Expected behavior
HTTP requests are possible in order to fetch data with apollo client

I hope the issue is related to the polyfills. Seems like this was the topic for #15. If someone knows about a workaround, which I could try to get my code running, it would be great if he could post it here! Thanks for your help.

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