Flow 0.75.0 reports 'Deprecated $call syntax' error with Axios
See original GitHub issueHey there! Iβm getting the following error regarding the $call
(lowercase c) syntax. Iβm not familiar with this syntax and thereβs nothing in the flow docs about this. The only mention of it I could find was an old github issue in the flow repo and it wasnβt helpful.
This started happening when I upgraded flow from 0.74.0 to 0.75.0.
- flow: 0.75.0
- yarn: 1.7.0
- typed/npm/axios_v0.18.x.js
> yarn flow
yarn run v1.7.0
$ ./node_modules/.bin/flow status
Error ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ flow-typed/npm/axios_v0.18.x.js:102:5
Deprecated $call syntax. Use callable property syntax instead. (deprecated-call-syntax)
99β declare type AxiosPromise<T,R = T> = Promise<AxiosXHR<T,R>>;
100β declare class Axios {
101β constructor<T,R>(config?: AxiosXHRConfigBase<T,R>): void;
102β $call: <T,R>(
103β config: AxiosXHRConfig<T,R> | string,
104β config?: AxiosXHRConfig<T,R>
105β ) => AxiosPromise<T,R>;
Issue Analytics
- State:
- Created 5 years ago
- Reactions:24
- Comments:10 (5 by maintainers)
Top Results From Across the Web
Handling Errors With Axios - Stack Abuse
In this article, we will see how to handle errors with Axios, as this is very important when making any HTTP calls knowing...
Read more >Release notes - n8n Documentation
The editor now includes color signals to indicate when syntax is valid or invalid, and better error messages and tips. Node enhancements#. Facebook...
Read more >Changelog - Dendron
deprecate (structure): enableHandlerbarTemplates has been removed as a configuration option (because it is now always on). No extra action isΒ ...
Read more >How to handle 401 (Authentication Error) in axios and react?
I am calling request function from multiple react components and when one of the request fails I want to refresh the token and...
Read more >How to handle unhandledrejection errors using axios
get call is failing, and e in the catch block is an unhandledrejection error, rather than the error axios encountered. That error is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
thanks all!
iβm facing this error too and also even for packages other than axios. so is there a way(i guess .flowconfig setting) to suppress
deprecated-call-syntax
Error?it is useful until reflect fix to type definition file.
Getting this with the styled-components flow-typed package.
Canβt find any documentation on what the callable property syntax is