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

CompileError 报错缺少行号列号导致难以调试 #91

Open
DevDengChao opened this issue Dec 11, 2024 · 1 comment
Open

CompileError 报错缺少行号列号导致难以调试 #91

DevDengChao opened this issue Dec 11, 2024 · 1 comment

Comments

@DevDengChao
Copy link

问题是什么

近期接手了一个用 template.js 作为模板引擎的项目,刚上手的时候需要调试一些模板的样式,由于不熟悉相关语法且 WebStorm 上没有插件支持, 导致修改时出现了语法错误。
报错信息比较含糊, 只告诉我出现了语法错误, 但是没告诉我是模板文件的哪一行那一列出了问题,后续修复起来十分吃力。

环境

  • 系统: Win 11
  • 浏览器:不相关
  • 版本:2.0.0
  • 用到的插件: template, rollup-plugin-templatejs
  • 其他信息

在线例子

<name>
CompileError

<tpl>
<div>
...
</div>

<render>
....

<message>
Unexpected token ')'

其他

@yanhaijing
Copy link
Owner

收到,感谢反馈,我认为有两个问题

  1. webstom插件问题,这个之前不会写,现在有了gpt应该好弄
  2. 报错的行号问题,可能不太好加😂

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