Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

263
Visualizações
Trying to convert React Plugin to Nuxt

I'm attempting to integrate Pixie Editor with Nuxt. They give the following example for React initalisation:

import React, {useEffect} from "react";
import { Pixie } from "pixie";

export function EditorDemo() {
  useEffect(() => {
    Pixie.init({
      selector: "#container",
      baseUrl: "pixie",
      image: "pixie/images/samples/sample1.jpg",
    }).then((instance) => {
      // editor is fully loaded!
      console.log(instance);
    });
  }, []);
  return <div id="container" />;
}

My attempt for Nuxt hasn't been successful, and I'm essentially still sitting at:

import Vue from 'vue'
import { Pixie } from 'pixie'

Vue.component('PixieEditor', Pixie)

Inside my Nuxt template:

<template>
  <client-only>
    <PixieEditor/>
  </client-only>
</template>

Errors:

TypeError: class constructors must be invoked with 'new'
    VueJS 5
    render index.vue:11
    VueJS 57
    NuxtJS 2
    Babel 12
    NuxtJS 11
client.js:102
[Vue warn]: The client-side rendered virtual DOM tree is not matching server-rendered content. This is likely caused by incorrect HTML markup, for example nesting block-level elements inside <p>, or missing <tbody>. Bailing hydration and performing full client-side render.

* I apologise for the lack of code. I could've added a bunch of pointless code, but I'm not sure where to start. *

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda