generator-teams icon indicating copy to clipboard operation
generator-teams copied to clipboard

Could not locate the bot implementation

Open vvylikangas opened this issue 4 years ago • 4 comments

I'm trying to follow Microsoft Learn module to implement search command on an existing app. However when I launch yo teams and follow these instructions:

Yeoman will launch and ask you a series of questions. Answer the questions with the following values:

"You are running the generator on an already existing project, "Planet Messaging", are you sure you want to continue?: Yes Do you want to change the current manifest version (1.10)?: No Quick scaffolding: Yes What features do you want to add to your project?: A Message Extension Command Where is your message extension hosted?: In a bot or Messaging Extension already defined in this project Choose which bot: {{MICROSOFT_APP_ID}} What type of messaging extension command?: Search based messaging extension Would you like a Settings option for the messaging extension?: No What is the name of your Message Extension command?: PlanetLookup Describe your Message Extension command?: Search for a planet"

I end up with this: "Unable to continue, as I could not locate the bot implementation Please verify that you have a valid Guid or a valid environment variable in your BotDeclaration."

I have succesfully completed the previous action messaging extension and it's working fine. What am I doing wrong? Any help is appreciated and also tell me if this is completely wrong place for these kind of questions.

vvylikangas avatar Feb 03 '22 10:02 vvylikangas

@vvylikangas Always happy yo help! Would you mind sharing the version of the generator you are using?

appieschot avatar Feb 03 '22 10:02 appieschot

Thank you @appieschot . Teams app generator is version 3.5.0

vvylikangas avatar Feb 03 '22 10:02 vvylikangas

Let me see if I can replicate the issue

appieschot avatar Feb 03 '22 11:02 appieschot

This error happens when the generator is using the AST to find the existing bot implementation - that is it expects you to already have created a bot (or another messaging extension) in the project.

wictorwilen avatar Feb 07 '22 14:02 wictorwilen

Closing due to inactivity

RickVanRousselt avatar Sep 16 '22 09:09 RickVanRousselt