We recently announced deprecation of JS v1 SDK and this repo. Starting September 2020 Microsoft will not provide support for this library. Existing applications using library will continue to work as-is. We strongly recommend upgrading to @azure/cosmos library.
I'm trying to access cosmosdb from a react/typescript application. I've imported the library and trying to just read a database. I'm using the v2 @azure/cosmos npm rather than documentdb npm. I was getting CORS issues with documentdb so trying to see if v2 fixes that.
These are the exceptions showing in the client.
ERROR in [at-loader] ./node_modules/@azure/cosmos/lib/queryIterator.d.ts:68:25
TS2304: Cannot find name 'AsyncIterable'.
ERROR in [at-loader] ./node_modules/@azure/cosmos/lib/request/request.d.ts:17:55
TS2694: Namespace '"url"' has no exported member 'UrlWithStringQuery'.
ERROR in [at-loader] ./node_modules/@azure/cosmos/lib/retry/retryUtility.d.ts:44:17
TS2694: Namespace '"url"' has no exported member 'UrlWithStringQuery'.
ERROR in [at-loader] ./node_modules/@azure/cosmos/lib/retry/sessionReadRetryPolicy.d.ts:32:70
TS2694: Namespace '"url"' has no exported member 'UrlWithStringQuery'.
Good afternoon,
I'm trying to access cosmosdb from a react/typescript application. I've imported the library and trying to just read a database. I'm using the v2 @azure/cosmos npm rather than documentdb npm. I was getting CORS issues with documentdb so trying to see if v2 fixes that.
These are the exceptions showing in the client.
ERROR in [at-loader] ./node_modules/@azure/cosmos/lib/queryIterator.d.ts:68:25 TS2304: Cannot find name 'AsyncIterable'. ERROR in [at-loader] ./node_modules/@azure/cosmos/lib/request/request.d.ts:17:55 TS2694: Namespace '"url"' has no exported member 'UrlWithStringQuery'. ERROR in [at-loader] ./node_modules/@azure/cosmos/lib/retry/retryUtility.d.ts:44:17 TS2694: Namespace '"url"' has no exported member 'UrlWithStringQuery'. ERROR in [at-loader] ./node_modules/@azure/cosmos/lib/retry/sessionReadRetryPolicy.d.ts:32:70 TS2694: Namespace '"url"' has no exported member 'UrlWithStringQuery'.
Any ideas how I fix these.