Filters no longer work since 3.4.0-alpha.4
(@vue/compat
)
#10852
Labels
🔨 p3-minor-bug
Priority 3: this fixes a bug, but is an edge case that only affects very specific usage.
scope: compiler
scope: sfc
scope: v2 compat
Vue version
3.4.0-alpha.4
Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-ltjj9g
Steps to reproduce
3.4.0-alpha.3
, filters are working fine. This is the version installed by default in the reproduction repo.3.4.0-alpha.4
version of bothvue
and@vue/compat
, and the invalid JS code will be generated for every filter usage (extra closing parenthesis is generated I believe).I actually digged a little bit further and found an exact commit after which the issue started to happen: 53aaa1e (found it using binary search on these commits: v3.4.0-alpha.3...v3.4.0-alpha.4)
What is expected?
No compilation errors should occur.
What is actually happening?
Compilation errors occur if at least one filter is used.
This is an excerpt from the generated code that shows the aforementioned parenthesis mismatch:
For search purposes I'll attach the stack trace I'm getting with webpack 5:
System Info
No response
Any additional comments?
This happened when I started porting to Vue 3 a big quite old project following the instructions provided in
@vue/compat
README.The text was updated successfully, but these errors were encountered: