You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we run the SFC of Vue 2, the following error is the output:
SyntaxError: <template functional> is no longer supported in Vue 3, since functional components no longer have significant performance difference from stateful ones. Just use a normal <template> instead.differences
Suggested solution
Currently, @intlify/cli using @vue/sfc-compiler. It is for Vue 3.
For Vue 2, you need to use the -source specification to get around it in order to perform annotate and format smoothly.
It would be useful to be able to use it for Vue 2 as well. It may be useful to be able to select the compiler with the -vue-version option.
Clear and concise description of the problem
When we run the SFC of Vue 2, the following error is the output:
Suggested solution
Currently,
@intlify/cli
using@vue/sfc-compiler
. It is for Vue 3.For Vue 2, you need to use the
-source
specification to get around it in order to performannotate
andformat
smoothly.It would be useful to be able to use it for Vue 2 as well. It may be useful to be able to select the compiler with the
-vue-version
option.Alternative
we can use the
--source
specificationAdditional context
No response
Validations
The text was updated successfully, but these errors were encountered: