Error: [Renderer] Renderer not defined (#builtin_raw)


#1

I get the following error when trying to serve raw content type:

error: [notification::botpress] DialogEngine: [Renderer] Renderer not defined (#builtin_raw)

#2

So I think you need to define builtin_raw renderer.


#3

something like this?

     '#builtin_raw': data => ({
        typing: true,
        type: 'builtin_raw',
        text: data.payload
        })

Also can you give an example using it?


#4

I think there’s a builtin_raw content-type in builtins. So if you create a few items for it, you can add them to the flow and it would require renderer to display that data in some way.

I’m not quite sure what was an intent of that content item but if you are getting this error, it looks that you are using it.


#5

I was trying to use it as a workaround to serve a json widget! Example:

{
  "title": "Widgets",
  "type": "object",
  "properties": {
    "stringFormats": {
      "type": "object",
      "title": "String formats",
      "properties": {
        "email": {
          "type": "string",
          "format": "email"
        },
        "uri": {
          "type": "string",
          "format": "uri"
        }
      }
    },
    "boolean": {
      "type": "object",
      "title": "Boolean field",
      "properties": {
        "default": {
          "type": "boolean",
          "title": "checkbox (default)",
          "description": "This is the checkbox-description"
        },
        "radio": {
          "type": "boolean",
          "title": "radio buttons",
          "description": "This is the radio-description"
        },
        "select": {
          "type": "boolean",
          "title": "select box",
          "description": "This is the select-description"
        }
      }
    },
    "string": {
      "type": "object",
      "title": "String field",
      "properties": {
        "default": {
          "type": "string",
          "title": "text input (default)"
        },
        "textarea": {
          "type": "string",
          "title": "textarea"
        },
        "color": {
          "type": "string",
          "title": "color picker",
          "default": "#151ce6"
        }
      }
    },
    "secret": {
      "type": "string",
      "default": "I'm a hidden string."
    },
    "disabled": {
      "type": "string",
      "title": "A disabled field",
      "default": "I am disabled."
    },
    "readonly": {
      "type": "string",
      "title": "A readonly field",
      "default": "I am read-only."
    },
    "widgetOptions": {
      "title": "Custom widget with options",
      "type": "string",
      "default": "I am yellow"
    },
    "selectWidgetOptions": {
      "title": "Custom select widget with options",
      "type": "string",
      "enum": [
        "foo",
        "bar"
      ],
      "enumNames": [
        "Foo",
        "Bar"
      ]
    }
  }
}