Skip to content

CancelablePromise error - Typescript (intermediate value)(intermediate value)(intermediate value) is not a function #1910

@artschekoff

Description

@artschekoff

Describe the bug
Environment: Project for next-js with "typescript": "^4.9.4", template for client axios

When I'm trying to call any request, I receive error on line 54 of CancelablePromise.ts file:

Screenshot 2023-11-25 at 16 02 22

The error is:

(intermediate value)(intermediate value)(intermediate value) is not a function

Screenshot 2023-11-25 at 15 57 19

The fun fact: If I change code to non-null calling like that:

Screenshot 2023-11-25 at 15 58 31

The error is disappearing.

Also, I've noticed that in current repository/master branch code of this place is changed to another type of null-checking:

Screenshot 2023-11-25 at 16 00 09

, but in last released version it is still as in my problem

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions