Open cbeninati opened 5 years ago
I think there is a problem with the file global-vue-loader.js
I'm not expert in node, but looks like it's trying to replace the export default with this
window.Vue.component('${componentName}', component.exports)
and component.exports is not defined.
I'm having the same problem.
Any guess on what to replace here?
Any solution for adding script to components ?
Steps to reproduce
hello-vue-components
from GitHubnpm install
src/HelloA.vue
(see changes below)npm run build
./dist/demo.html
in the browser (Chrome)Change to the SFC
Complete SFC