问题描述
当我在自适应设计器中看到自适应卡JSON时,它工作正常,当在BOT仿真器中签入时,它显示正常,但是在ASE环境中以BOT发布代码后,出现此错误。 [对于所有自适应卡]真的不知道出什么问题吗?
我正在使用Adapative卡v 1.0
解决方法
在提出问题之后,我们通过Microsoft找到了问题的根本原因,这是因为使用了webchat.js,如果我们使用的是最小版本,则不支持Adapative Card,那么花了很多时间才找到
当我们使用最小捆绑包时,不包括自适应卡。如果您要使用自适应卡,则需要使用完整捆绑包,
//Use this --
<script crossorigin="anonymous" src="https://cdn.botframework.com/botframework-webchat/latest/webchat.js"></script>
//Not this script
<script crossorigin="anonymous" src="https://cdn.botframework.com/botframework-webchat/latest/webchat-minimal.js"></script>
https://github.com/microsoft/BotFramework-WebChat#integrate-with-javascript