Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

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

@BruceHaley

Description

@BruceHaley

@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.

Metadata

Metadata

Assignees

Labels

ExemptFromDailyDRIReportUse this label to exclude the issue from the DRI report.bugIndicates an unexpected problem or an unintended behavior.needs-triageThe issue has just been created and it has not been reviewed by the team.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions