Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

引入了minui组件之后,run start 正常,但是run build的时候把input标签压缩了,导致报错 #70

Open
alinjiajun opened this issue Apr 15, 2019 · 3 comments

Comments

@alinjiajun
Copy link

我在src目录下引入了minui, minui组件都是原生写法。
image
里面的wxc-input组件是这样的
image

但是经过run build之后input标签的结束标签不见了
image

小程序运行时报错没有input的结束标签
image

请问如何解决

@imyelo
Copy link
Member

imyelo commented Apr 15, 2019

我看 minui 的组件是用 min 的 wxc 格式写的,这份原生写法的组件在哪里下载?

@imyelo
Copy link
Member

imyelo commented Apr 15, 2019

重现了,应该是 wxml-loader 压缩代码时把在 html 中多余的 </input> 去掉了;处理起来需要一点时间,你可以先修改 wxc-input/index.wxml,将 <input ...></input> 改为 <input .../>,暂时绕过这个问题。

@alinjiajun
Copy link
Author

好的 我现在还是开发阶段 暂时不需要build 等待你修复好通知下~ 谢谢拉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants