A vue file in my project has become too big. I wanted to seperate its script section into a js file. In js file, I export the Vue object;
export default new Vue({
data: {
search: "",
...
And import it in the Vue file;
<script src="./RecordNameTable.js">
</script>
But this is not working, it gives errors. I can import it as a .vue file which has the classic Vue syntax between <script></script> tags. But I do not want this. How to solve this problem?
export defaultwithmodule.exports = new Vue({...and can you share the errors that shows?.vueextension?