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

Cannot build TypeScript OOTB Echo BOT #4251

Closed
Sebastian-Rogers-BEIS opened this issue May 31, 2022 · 2 comments · Fixed by #4257
Closed

Cannot build TypeScript OOTB Echo BOT #4251

Sebastian-Rogers-BEIS opened this issue May 31, 2022 · 2 comments · Fixed by #4257
Assignees
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Issue is created by anyone that is not a collaborator in the repository. needs-triage The issue has just been created and it has not been reviewed by the team.

Comments

@Sebastian-Rogers-BEIS
Copy link

Github issues should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.

Versions

What package version of the SDK are you using. - 4.15.0
What nodejs version are you using - 14.15.4
What browser version are you using - none
What os are you using - Windows Server 2019 Datacenter

Describe the bug

When using Yeoman to create a TypeScript Echo BOT the following errors are displayed:

81 export declare type Resolved<T> = T extends {
                       ~~~~~~~~

node_modules/@azure/core-rest-pipeline/node_modules/@azure/core-tracing/types/core-tracing.d.ts:83:41 - error TS2315: Type 'Resolved' is not generic.

83 } ? F extends (value: infer V) => any ? Resolved<V> : never : T;
                                           ~~~~~~~~~~~

node_modules/@azure/core-rest-pipeline/node_modules/@azure/core-tracing/types/core-tracing.d.ts:131:212 - error TS2315: Type 'Resolved' is not generic.

131     }, Callback extends (updatedOptions: Options, span: Omit<TracingSpan, "end">) => ReturnType<Callback>>(name: string, operationOptions: Options, callback: Callback, spanOptions?: TracingSpanOptions): Promise<Resolved<ReturnType<Callback>>>;
     

To Reproduce

Steps to reproduce the behavior:

  1. yo botbuilder
  2. What's the name of your bot? (my-chat-bot)
  3. What will your bot do? (Demonstrate the core capabilities of the Microsoft Bot Framework)
  4. What programming language do you want to use? TypeScript
  5. Which template would you like to start with? (Use arrow keys) Echo Bot - https://aka.ms/bot-template-echo
  6. Looking good. Shall I go ahead and create your new bot? (Y/n)

Expected behavior

Completes without errors.

Screenshots

Additional context

@Sebastian-Rogers-BEIS Sebastian-Rogers-BEIS 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 May 31, 2022
@Sebastian-Rogers-BEIS
Copy link
Author

Its the version of typescript in use. Changing it to 4.3.2 resolves the issue

@anishprasad01 anishprasad01 added customer-reported Issue is created by anyone that is not a collaborator in the repository. Bot Services Required for internal Azure reporting. Do not delete. Do not change color. labels May 31, 2022
@anishprasad01
Copy link
Contributor

Hi @Sebastian-Rogers-BEIS,

Thank you for the report. I have been able to reproduce this issue, and am looking into next steps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bot Services Required for internal Azure reporting. Do not delete. Do not change color. bug Indicates an unexpected problem or an unintended behavior. customer-reported Issue is created by anyone that is not a collaborator in the repository. needs-triage The issue has just been created and it has not been reviewed by the team.
Projects
None yet
2 participants