-
Notifications
You must be signed in to change notification settings - Fork 209
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
BasicBot JS template has ts-check errors #13253
Comments
👋 Hi @ridomin, Thank you for reporting this issue! We want to let you know that: ⏱️ Our team will personally review your issue ✨ This is an AI-generated initial response It seems that you're encountering type errors in the Basic Bot template generated by the Teams Toolkit (TTK) when you add Here's how you can resolve these type errors: Steps to Resolve Type Errors:
Example Conversion to TypeScript:Original // @ts-check
const { TeamsActivityHandler } = require('botbuilder');
class TeamsBot extends TeamsActivityHandler {
constructor() {
super();
// Your code here
}
}
module.exports.TeamsBot = TeamsBot; Converted import { TeamsActivityHandler } from 'botbuilder';
class TeamsBot extends TeamsActivityHandler {
constructor() {
super();
// Your code here
}
}
export { TeamsBot }; Additional Steps:
Resources:
By following these steps, you should be able to resolve the type errors in your Basic Bot template. If the problem persists, please share the specific type errors you are encountering for further assistance.
|
@ridomin ,Thank you for your inquiry about your Teams app development issue! |
The code produced by TTK in the basic bot template:
Create new app -> Bot -> Basic Bot -> JS
Has type errors.
Add
// @ts-check
to teamsBot.jsThe text was updated successfully, but these errors were encountered: