아놔... ".vue" 붙이는걸...ㅠㅠ Failed to mount component: template or render function not defined.

2023. 3. 7. 20:18IT개발/Vue.js

반응형

In my case, I imported my component (in router) as:

import bsw from 'common-mod/src/components/webcommon/webcommon'

It is simply solved if I changed it to

import bsw from 'common-mod/src/components/webcommon/webcommon.vue'

https://stackoverflow.com/questions/41983767/vue-template-or-render-function-not-defined-yet-i-am-using-neither

 

Vue template or render function not defined yet I am using neither?

This is my main javascript file: import Vue from 'vue' new Vue({ el: '#app' }); My HTML file: <body> <div id="app"></div> <script src="{{ mix('/js/app.js') }}"&g...

stackoverflow.com

 

같은 경로에 동일명의 js 와 vue 파일이 있으면, 반드시, import시 .vue로 명시적으로 지정해줘라!

안그럼 묵시적으로 .js 파일부터 찾응께 알간!

반응형