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

Support for vue-template-compiler (Vue 2) #50

Closed
3 tasks done
kazupon opened this issue Oct 28, 2021 · 0 comments · Fixed by #55
Closed
3 tasks done

Support for vue-template-compiler (Vue 2) #50

kazupon opened this issue Oct 28, 2021 · 0 comments · Fixed by #55
Labels
Status: PR Welcome Welcome to Pull Request Status: Proposal Request for comments

Comments

@kazupon
Copy link
Member

kazupon commented Oct 28, 2021

Clear and concise description of the problem

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.

Alternative

we can use the --source specification

Additional context

No response

Validations

@kazupon kazupon added Status: Proposal Request for comments Status: PR Welcome Welcome to Pull Request labels Oct 28, 2021
kazupon added a commit that referenced this issue Nov 4, 2021
kazupon added a commit that referenced this issue Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: PR Welcome Welcome to Pull Request Status: Proposal Request for comments
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant