question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error merging component schema in custom action: Interface Microsoft.IDialog is not defined

See original GitHub issue

Describe the bug

When using the update-schema.ps1 script, there is an error as follows:

Error SearchMessageComposition: Interface Microsoft.IDialog is not defined

*** Could not merge components ***

This is with the following schema:

{
  "$schema": "https://schemas.botframework.com/schemas/component/v1.0/component.schema",
  "$role": "implements(Microsoft.IDialog)",
  "title": "SearchMessageComposition",
  "description": "This will build the message string which will be sent to the user to describe what will be search.",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "resultProperty": {
      "$ref": "schema:#/definitions/stringExpression",
      "title": "SearchMessage",
      "description": "Value from callers memory to store the result"
    }
  }
}

The same error happens when using the sample MultiplyDialog schema

Version

image

Browser

  • Electron distribution
  • Chrome
  • Safari
  • Firefox
  • Edge

OS

  • macOS
  • Windows
  • Ubuntu

To Reproduce

Steps to reproduce the behavior:

  1. Eject the runtime
  2. Move to the schemas folder inside the bot folder
  3. Open powershell and run ./update-schema.ps1
  4. See error

Expected behavior

Schemas should be merged correctly.

Screenshots

image

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Rekeyeacommented, Feb 24, 2021

What is the version of your bf-cli? It needs to be updated to 4.12 since the sdk.schema was updated during R12. Try running npm i -g @microsoft/botframework-cli@rc

Awesome! It worked! Thank you all.

1reaction
luhan2017commented, Feb 24, 2021

@jobpool did you install the bf-dialogs through bf plugins before, could you try to do bf plugins:uninstall @microsoft/bf-dialog and install bf-cli again?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Interface Microsoft.IDialog is not defined while running ...
The final step is to merge schema files. The executed powershell script gives the following output: Running schema merge. Finding component ...
Read more >
sample multiplydialog causes an error with the dialog merge ...
Error MultiplyDialog: Interface Microsoft.IDialog is not defined. This is because the dialog merge command sees the MultiplyDialog.schema ...
Read more >
Create custom actions in Bot Framework Composer
Learn how to create custom actions using Bot Framework Composer. ... the schema file; Create the BotComponent class; Merge schema files ...
Read more >
Failure to create a custom action - Bot Service - Microsoft Q&A
I got as far as being able to add the custom action within Bot Framework Composer and had no errors. However, upon clicking...
Read more >
Create custom triggers in Bot Framework Composer
Merging partial schema files will isolate changes, allow for easier recovery from errors, and enable easier packaging of your component for ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found