首页 > 解决方案 > Vue 1.x 项目上的 StencilJS 组件

问题描述

我正在尝试将 stencil.js 组件与现有的 Vue 1.x 项目集成。我在 Vue 2.x 项目和ignoredElements配置中做了同样的事情。Vue 1.x 中是否有类似的东西,或者集成方式是否不同?

(我阅读了这个文档Vue 1.x is missing,也许不可能?)

模板包存储在私有注册表中,通过将其添加到 index.html 中来提供它并不理想

截至目前,我无法看到我的组件,并且以下警告输出到控制台。

Unknown custom element: <test-component> - did you register the component correctly? For recursive components, make sure to provide the "name" option.

标签: javascriptvue.jsvue-componentstenciljs

解决方案


推荐阅读