vue-json-excel
vue-json-excel copied to clipboard
Can't import
I base on Meteor + Vue Componet.
import JsonExcel from 'vue-json-excel';
Vue.component('downloadExcel', JsonExcel);

Sorry for the late response, I don't know Meteor but I will research if there is an especial setup in the way of package.json expose the JsonExcel.vue file. But meanwhile you could try to import the JsonExcel.vue directly
import JsonExcel from 'path/to/JsonExcel.vue';
Vue.component('downloadExcel', JsonExcel);
I hope this helps you.
OK I will try soon
I had a problem with build, @jecovier solution worked for me.
Sorry for the late response, I don't know Meteor but I will research if there is an especial setup in the way of package.json expose the JsonExcel.vue file. But meanwhile you could try to import the JsonExcel.vue directly
import JsonExcel from 'path/to/JsonExcel.vue'; Vue.component('downloadExcel', JsonExcel);I hope this helps you.
it works.
Thank you, I've tried this way and it worked.
On Thu, Nov 19, 2020 at 3:42 AM DiansiWu [email protected] wrote:
Sorry for the late response, I don't know Meteor but I will research if there is an especial setup in the way of package.json expose the JsonExcel.vue file. But meanwhile you could try to import the JsonExcel.vue directly
import JsonExcel from 'path/to/JsonExcel.vue'; Vue.component('downloadExcel', JsonExcel);
I hope this helps you. [image: image] https://user-images.githubusercontent.com/15953667/99630802-70fb7500-2a75-11eb-9844-7c7cd825babd.png
it works.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/jecovier/vue-json-excel/issues/34#issuecomment-730164983, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7TKIOMCIDGGCODTQZAN53SQS46HANCNFSM4EOJUISA .
