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

Nuxt3 configuration #224

Open
SamG92 opened this issue Nov 23, 2022 · 0 comments
Open

Nuxt3 configuration #224

SamG92 opened this issue Nov 23, 2022 · 0 comments

Comments

@SamG92
Copy link

SamG92 commented Nov 23, 2022

Hello,

How do you properly use vue-google-charts in Nuxt3?
I got it to work with plugins:

plugins/gchart.client.ts:
import { GChart } from "vue-google-charts";
export default defineNuxtPlugin((nuxtApp) => {
  nuxtApp.vueApp.component("GChart", GChart);
});

but sometimes I get the following warning in dev environment: "[Vue warn]: Failed to resolve component: GChart"
and it crashes in build generate environment.

Thanks for your help!

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