Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

How can i use Vuera in nuxt ? #116

Open
jamaltun opened this issue Apr 18, 2020 · 5 comments
Open

How can i use Vuera in nuxt ? #116

jamaltun opened this issue Apr 18, 2020 · 5 comments

Comments

@jamaltun
Copy link

jamaltun commented Apr 18, 2020

Hi,
How can i use vuera in my nuxt project ?

I integrated it as specified but I get an error like below. And the whole app is breaking down. It gives the same error for all Vue components.

Uncaught Error: Objects are not valid as a React child (found: [object Promise]). If you meant to render a collection of children, use an array instead.

@stevefan1999-personal
Copy link

It has something to do with SSR. I have tried it before.

@deathemperor
Copy link

looks like a problem with Nextjs too. I couldn't get it to parse .vue files

@leonelos-dev
Copy link

I'm dealing the same issue. Looks like developers don't care about this xD

@Saitgalin
Copy link

how can I get around this error?

@hacknug
Copy link

hacknug commented Sep 10, 2022

The way I used this with Nuxt v2.14.12 a while ago was via a client-only plugin:

// nuxt.config.js
plugins: [
  { src: '~/plugins/vuera', mode: 'client' },
],
// /plugins/vuera.js
import Vue from 'vue'
import { VuePlugin } from 'vuera'

Vue.use(VuePlugin)

Then in my components I was able to import things like @nivo/core and @nivo/line to render line charts on my website.

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

No branches or pull requests

6 participants