Skip to content
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

Error TS2345 for npm run test in experimental/generation/generator #3410

Open
BruceHaley opened this issue Aug 17, 2021 · 2 comments
Open

Error TS2345 for npm run test in experimental/generation/generator #3410

BruceHaley opened this issue Aug 17, 2021 · 2 comments
Assignees
Labels
bug Indicates an unexpected problem or an unintended behavior. ExemptFromDailyDRIReport Use this label to exclude the issue from the DRI report. needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@BruceHaley
Copy link
Contributor

BruceHaley commented Aug 17, 2021

@microsoft/bf-generate-library: > @microsoft/[email protected] test D:\a\1\s\experimental\generation\generator\packages\library
@microsoft/bf-generate-library: ^
@microsoft/bf-generate-library: > nyc --extension .ts mocha --forbid-only "test/**/*.test.ts"
@microsoft/bf-generate-library: TSError: ⨯ Unable to compile TypeScript:
@microsoft/bf-generate-library: ----------|----------|----------|----------|----------|-------------------|

@microsoft/bf-generate-library: test/generate.test.ts(336,66): error TS2345: Argument of type 'import("D:/a/1/s/experimental/generation/generator/node_modules/botbuilder-dialogs-adaptive-runtime-core/lib/serviceCollection").ServiceCollection' is not assignable to parameter of type 'import("D:/a/1/s/experimental/generation/generator/node_modules/botbuilder-dialogs-adaptive/node_modules/botbuilder-dialogs-adaptive-runtime-core/lib/serviceCollection").ServiceCollection'.

@microsoft/bf-generate-library: Types have separate declarations of a private property 'dependencies'.
@microsoft/bf-generate-library: at createTSError (D:\a\1\s\experimental\generation\generator\node_modules\ts-node\src\index.ts:434:12)

Repros locally with:

lerna bootstrap --hoist
npm run build
npm run test

This error can be seen failing the build
BotBuilder-bf-generate-JS/20210817.264388 in the task npm run test.

@BruceHaley BruceHaley added bug Indicates an unexpected problem or an unintended behavior. needs-triage The issue has just been created and it has not been reviewed by the team. labels Aug 17, 2021
@joshgummersall joshgummersall added the ExemptFromDailyDRIReport Use this label to exclude the issue from the DRI report. label Aug 18, 2021
@gandiddi gandiddi self-assigned this Jun 19, 2024
@gandiddi
Copy link
Collaborator

I ran npm run test locally at the path BotBuilder-Samples\experimental\generation\generator. It is showing: "Successfully ran target test for 0 projects."
image

@gandiddi
Copy link
Collaborator

The error is not reproducible locally, but it's not finding any projects. As discussed with @tracyboehrer, I am assigning this to him.

@gandiddi gandiddi assigned tracyboehrer and unassigned gandiddi Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Indicates an unexpected problem or an unintended behavior. ExemptFromDailyDRIReport Use this label to exclude the issue from the DRI report. needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
Development

No branches or pull requests

4 participants