-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
next(): Promise<IteratorResult<T,T>>; -> Method from core-paging is giving a error. #19394
Comments
@sudeepghosh0 Can you please share a code snippet that can show how to reproduce the error? |
Steps to reproduce the error:- |
The latest supported TypeScript version is 3.4.5 for Angular 8. We probably need to support more down-level versions like we did in #10599 |
Ah, we deleted our hand-crafted 3.1 type definition, and replaced it with the output of api-extractor #16732, which doesn't have the expected types. Look like downlevel-dts cannot handle the breaking changes in the type definitions. |
So we had had a hand-crafted core-paging.d.ts for 3.1 where we used |
Hi @sudeepghosh0, thanks for filing this report! I created a fix in #19507. Until the fix is released, you can use this patched package. Please let me know if you have any questions! |
Hi @sudeepghosh0. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “ |
Thanks for the quick response. |
@sudeepghosh0 please download the tarball file from the link I shared above and then run |
Thank You. |
@deyaaeldeen Please use the patched package only for testing and not in production. For your production usage, please wait for the official release which we should be able to get out in the first week of January 2022 |
Hello, is there a fix for this issue? I have the same problem. |
Actually, the azure/storage-blob library is the one that is causing the issue I'm not using @azure/core-paging, the version of the storage-blob that we are using in our angular 8 protect is: 12.8.0 |
Thanks @Leodecko for the information! Could you please share the full error and the version of |
@Leodecko thanks! The error is coming from core-paging which is one of the dependencies of You can also try installing @azure/[email protected] explicitly by running Please let me know whether this solved the issue. |
@Leodecko just FYI, Deya and I chatted and we want to recommend that instead of installing # show the version of core-paging which I assume is 1.2.0 at this time
angular8 main % npm ls @azure/core-paging
[email protected] /home/mleger/workspace/azure-sdk-experiments/local/angular8
└─┬ @azure/[email protected]
└── @azure/[email protected]
# update @azure/core-paging to 1.2.1 (the latest)
angular8 main % npm update @azure/core-paging
# show the version of core-paging again, which should be 1.2.1
angular8 main % npm ls @azure/core-paging
angular8 main % npm ls @azure/core-paging
[email protected] /home/mleger/workspace/azure-sdk-experiments/local/angular8
└─┬ @azure/[email protected]
└── @azure/[email protected] Hopefully that helps get you on a version of core-paging that contains the fix without deleting node_modules or your lock-file. let us know if that resolves your issues! Just FYI - if nothing happens after you run
|
Describe the bug
A clear and concise description of what the bug is.
ERROR in ../node_modules/@azure/core-paging/types/3.1/core-paging.d.ts:16:21 - error TS2314: Generic type 'IteratorResult' requires 1 type argument(s).
16 next(): Promise<IteratorResult<T,T>>;
To Reproduce
Steps to reproduce the behavior:
1.
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: