Syntax error when compiling filter with compact #10823
Unanswered
CX3201
asked this question in
Help/Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Error :
Syntax Error: Unexpected token, expected "," (60:140)
> 60 | _createElementVNode("span", null, _toDisplayString($props.param1r_f_ctx.formatparam1)) + "次阅读", 1 /* TEXT */),
Template code:
<span>{{ param1 | format }}次阅读</span>
The reason I found:
In the generated code, there is an extra parenthesis in the _toDisplayString call
The transformFilter only rewrite the content but keep the old ast.
Is it a bug?
Beta Was this translation helpful? Give feedback.
All reactions