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 · 0 comments
Open

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

BruceHaley opened this issue Aug 17, 2021 · 0 comments
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/bf-generate-library@1.0.0 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
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

2 participants