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

Usage example for nuxtjs ? #29

Open
LittleLama opened this issue Oct 2, 2024 · 0 comments
Open

Usage example for nuxtjs ? #29

LittleLama opened this issue Oct 2, 2024 · 0 comments

Comments

@LittleLama
Copy link

LittleLama commented Oct 2, 2024

Describe the bug
I can't make it work with Nuxtjs

To Reproduce
Steps to reproduce the behavior:

  1. Install a nuxt js
  2. Make a plugin with these lines in it
import JsonExcel from "vue-json-excel3"
import { defineNuxtPlugin } from '#app';

export default defineNuxtPlugin(nuxtApp => {
  nuxtApp.vueApp.component('downloadExcel', JsonExcel);
});
  1. Make a page/component with
    <downloadexcel :data="exportData" name="Test">Download</downloadexcel>
  2. See if you see any error, mine won't throw any error, load depencies, but won't display

Expected behavior
To load correctly the page, display the Download link, and download

Git link to reproduce the issue
https://codesandbox.io/p/devbox/nuxt-json-excel3-2hs3l6

Desktop (please complete the following information):

  • OS: Nuxt 3.11.2
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

1 participant