-
-
Notifications
You must be signed in to change notification settings - Fork 95
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
build 时Parse Error #295
Comments
排查到了是 vite-ssg 的 bug。 renderHTML 中的 appHTML 包含特殊字符
需要将其当作纯文本来替换。 解决方案时变成一个函数返回文本。 测试可构建成功。 |
I create a PR for vite-ssg. |
我找到一个特别的解决方案,将半角的$符号使用全角的”$“符号代替就行,在人类看来是没有问题的。 |
可以先作为临时解决方案,等 vite-ssg 合并后,我升级一下依赖再彻底解决。 |
pr已经合并了 |
Done. Released in |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
当小标题中存在
^
,$
符号时,会导致build时报错:Parse Error,但令人疑惑的是dev 时正常如:
其中 第二个标题中包含$符号导致build时报错,即使使用``将其括起来, 在之前的版本中并不会出现这种情况
具体的报错信息如下:
Reproduction
如上所述
System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: