Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

261
Vistas
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 la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda