vue-json-excel icon indicating copy to clipboard operation
vue-json-excel copied to clipboard

Can't import

Open thearabbit opened this issue 7 years ago • 5 comments
trafficstars

I base on Meteor + Vue Componet.

import JsonExcel from 'vue-json-excel';
 Vue.component('downloadExcel', JsonExcel);

image

thearabbit avatar Jan 30 '18 14:01 thearabbit

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.

jecovier avatar Feb 22 '18 14:02 jecovier

OK I will try soon

thearabbit avatar Feb 22 '18 15:02 thearabbit

I had a problem with build, @jecovier solution worked for me.

jocelio avatar Oct 29 '20 18:10 jocelio

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

it works.

wudiansi avatar Nov 19 '20 06:11 wudiansi

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 .

jocelio avatar Nov 19 '20 12:11 jocelio