vuera icon indicating copy to clipboard operation
vuera copied to clipboard

How can i use Vuera in nuxt ?

Open jamaltun opened this issue 4 years ago • 5 comments

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.

jamaltun avatar Apr 18 '20 06:04 jamaltun

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

stevefan1999-personal avatar May 16 '20 16:05 stevefan1999-personal

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

deathemperor avatar Oct 06 '20 08:10 deathemperor

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

leonelos-dev avatar Jun 09 '22 21:06 leonelos-dev

how can I get around this error?

Saitgalin avatar Sep 05 '22 12:09 Saitgalin

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.

hacknug avatar Sep 10 '22 14:09 hacknug