Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install in nuxtjs not working #25

Open
dker92 opened this issue Mar 23, 2022 · 1 comment
Open

Install in nuxtjs not working #25

dker92 opened this issue Mar 23, 2022 · 1 comment

Comments

@dker92
Copy link

dker92 commented Mar 23, 2022

Hi everyone,
I am trying to install this package in nuxtjs but it seems to no be working
My vue-xlsx.js plugin

import Vue from 'vue'
import { XlsxWorkbook, XlsxSheet, XlsxDownload } from 'vue-xlsx'

Vue.use(XlsxWorkbook)
Vue.use(XlsxSheet)
Vue.use(XlsxDownload)

nuxt.config

  plugins: [
    '@/plugins/element-ui',
    '@/plugins/axios',
    '@/plugins/bus',
    '@/plugins/reactive-search',
    '@/plugins/buefy',
    '@/plugins/vue-xlsx',
  ],
@RahatChoudhary
Copy link

RahatChoudhary commented Dec 8, 2022

Hello @dker92, Replace

Vue.use(XlsxWorkbook)
Vue.use(XlsxSheet)
Vue.use(XlsxDownload)

with

Vue.component('XlsxWorkbook', XlsxWorkbook)
Vue.component('XlsxSheet', XlsxSheet)
Vue.component('XlsxDownload', XlsxDownload)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants