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

wxml中的注释引发的编译错误及可能的解决办法 #149

Open
gzb1128 opened this issue Dec 14, 2021 · 0 comments
Open

wxml中的注释引发的编译错误及可能的解决办法 #149

gzb1128 opened this issue Dec 14, 2021 · 0 comments

Comments

@gzb1128
Copy link

gzb1128 commented Dec 14, 2021

  • wept --version: 0.9.6 140900
  • node --version: v14.18.1
  • 操作系统: windows
  • 操作平台(浏览器|IOS): 无
  • 与官方工具表现不一致?无

错误日志

图片

wept报告了一个wxml的编译错误,然而代码在开发者工具中可以正常工作,经过排查,是wxml中写的<!-- -->形式的注释使得相关错误发生,推断wept项目中的parser应该是利用<view /view>的逻辑进行语法的拆分的。经过测试,写成<!-- !-->形式的注释可以通过代码。希望增加对wxml注释的合理解析。因为直接写英文的感叹号,html格式会直接被浏览器解析掉,所以打了大写的感叹号

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

1 participant