-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
User/docker tests broken with duplicate identifier IteratorResult #32333
Comments
I'm seeing the same thing when I tried to move to 3.6.1-rc
|
@eamodio You need to update the version of |
@rbuckton Excellent -- that worked! Thank you! |
* Build(deps-dev): bump typescript from 3.5.3 to 3.6.2 Bumps [typescript](https://github.com/Microsoft/TypeScript) from 3.5.3 to 3.6.2. - [Release notes](https://github.com/Microsoft/TypeScript/releases) - [Commits](microsoft/TypeScript@v3.5.3...v3.6.2) Signed-off-by: dependabot-preview[bot] <[email protected]> * Add types/node and pin it ref microsoft/TypeScript#32333
I upgraded to typescript 3.7.2 today and now am seeing the same error:
I have upgraded @types\node to latest (12.12.6), but still getting the error. Any suggestions? |
@JontyMC where is the other location that it is defined? I just ran into that issue as well:
However, for me it was because I didn't have @types/node installed in that project. For you I see that you already have this installed. Could it be a reference in your tsconfig lib prop that's causing this? What do you have listed in there? |
Yeah, that was the issue, thanks. I had:
If this helps anyone else, I'm using Aurelia, and had to remove the above from aurelia.json in transpiler > dtsSource. Here's a good post that explains how type definitions work https://blog.angular-university.io/typescript-2-type-system-how-do-type-definitions-work-in-npm-when-to-use-types-and-why-what-are-compiler-opt-in-types/ |
@rbuckton Exactly where is this addressed already? IteratorResult is still there at: https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/index.d.ts#L72 |
@rbuckton we need a flag to disable this error. The release notes say we need to fix this on case-by-case basis, but we cannot fix it for libraries that we cannot control, so due to this one feature we cannot adopt Typescript 3.7. Why can't we opt in to this behaviour as has been the case with other stricter checking changes? |
@nealeu this is handled by the When the TypeScript compiler searches for types (either using the However, if your build is configured such that you are explicitly adding |
The latest versions of the |
@weswigham One of the submodules stored the old version of |
* Add unit tests for aws-helper and minio-helper. * Break up server.ts into app.ts and handlers/*.ts so that unit test can be written more easily. * update @types/node because of microsoft/TypeScript#32333 * upgrade kubernete-client version to be compatible with new @types/node version * fix bug: AWSInstanceProfileCredentials.profile() returns a promise not a string * remove I prefix from interfaces. minor fixes on lint errors. * fix format errors * Added more unit tests, and minor fixes. * Fix comment: GKS should be GKE * use jest.resetAllMocks instead of reset each mock individually * fix format for helper test
Whow?! That really hearts! :) I had an issue with obsoleted @types/nodes in the parent folder Nevertheless, thanks @rbuckton and @weswigham to this issue thread was REALLY useful to track all possible scenarios of this really painful and recurring issue. I would really love to see this extracted into a separate troubleshooting document :) |
This issue can be closed, the StackOverflow question also suggests that it resolves this issue. |
* Add unit tests for aws-helper and minio-helper. * Break up server.ts into app.ts and handlers/*.ts so that unit test can be written more easily. * update @types/node because of microsoft/TypeScript#32333 * upgrade kubernete-client version to be compatible with new @types/node version * fix bug: AWSInstanceProfileCredentials.profile() returns a promise not a string * remove I prefix from interfaces. minor fixes on lint errors. * fix format errors * Added more unit tests, and minor fixes. * Fix comment: GKS should be GKE * use jest.resetAllMocks instead of reset each mock individually * fix format for helper test
As mentioned, please refer to https://stackoverflow.com/questions/57331779/typescript-duplicate-identifier-iteratorresult if you are still experiencing problems. |
I used type/node version 17.0.3 Version: |
I have used 17.0.3 version of type/node. The issue still persist. Can you specify which can be the best version to be used. Please help me out. Its urgent. Version: |
#32324 shows some errors in the user tests with duplicate identifier IteratorResult between the es2015 lib and
@types/node
. The docker tests also fail, probably for a similar reason.#32303 should fix some of these errors; we should make sure that the docker tests compile without error since those are open source partner teams in microsoft. Not sure if the fix will be in our code or theirs.
The text was updated successfully, but these errors were encountered: