-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Separate vue component into : *.ts and *.html #8864
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
Comments
Hello, your issue has been closed because it does not conform to our issue requirements. In order to ensure every issue provides the necessary information for us to investigate, we require the use of the Issue Helper when creating new issues. Thank you! |
You should still use your |
@Justineo It is not true. Nowadays we can testing vue components without .vue files but vue-class-component with imported template (by html-loader-jest not jest-transform-stub). |
Hi,
I'm using
vue-cli 3
and typescript to make my own application.Everything seemed to be fine until I separated my module into parts:
template file
andlogic file
.I have a component like this:
Actually, when this component was combined into one
*.vue
file, it ran smoothly.But I want to separate the module into 2 parts because in future, code can be longer and longer, therefore, it is hard to track the issue if available.
When I ran the application after changing my code like above, one error was thrown to me:
You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.
Can anyone help ?
Thanks,
The text was updated successfully, but these errors were encountered: