问题遇到的现象和发生背景
vue3项目打包部署后component 无法解析vue代码
用代码块功能插入代码,请勿粘贴截图
<component name="Report" v-bind:is="{template: '123'}"></component>
运行结果及报错内容
在本地运行有正常显示,但打包部署后这段代码就变成了
我的解答思路和尝试过的方法
我将{template: '
123
'}换成
components:{ report:{template: '<div>123</div>'}}
<component name="Report" is="report"></component>
效果相同