javascript - 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.
解决方案
推荐阅读
- .net - .NET Core 中是否有 System.Runtime.InteropServices.Marshal.GetActiveObject() 的替代品?
- groovy - 添加 String.metaClass.call 然后在字符串文字上使用它时出现 MissingMethodException
- java - 解析字符串并区分单字符运算符和双字符运算符
- android - 在不破坏封装的情况下使用 Android Room
- mysql - Unity 和 MySQL 错误:UNITYTLS_X509VERIFY_NOT_DONE
- typescript - TypeScript 定义文件中#private 的目的是什么?
- flutter - 将值与 CircularProgressIndicator 颤动的中心对齐
- javascript - 未捕获的类型错误:无法读取未定义的属性“openPopup”
- python - 在同一页面模板中分别验证多个 wtf 表单。烧瓶
- python - 在进行情绪分析时将 API 密钥隐藏在 Python 文件中