Quantcast
Channel: Active questions tagged react-native+typescript - Stack Overflow
Viewing all articles
Browse latest Browse all 6214

Keep getting error: $.deferred is not a function

$
0
0

I've installed jquery and @types/jquery. I want to use jquery.Deferred() but when i try to use it I get error that "$.Deferred is not a function".

import * as $ from "jquery";u// somewhere in codelet dfd = $.Deferred<      { response: JQueryXHR; body?: any },      { response: JQueryXHR; errorThrown: string }>();

It is from code that was generated by https://github.com/OpenAPITools/openapi-generator for typescript. I'm using it in React Native app. Any suggestions?Thanks!


Viewing all articles
Browse latest Browse all 6214

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>