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

143
Vistas
Next js named imports with no SSR

I need to convert this line to next.js dynamic import and also without SSR

import { widget } from "./charting_library/charting_library";

I have tried this one

const widget = dynamic(() => import("./charting_library/charting_library").then((mod) => mod.widget), {
    ssr: false
});

This seems not the correct way and also charting_libray.js file is a compiled js file in a previous project.

enter image description here

Is the problem is my importing method or the js file? If this is importing method how do I fix this?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

const { widget } = await import("./charting_library/charting_library")

Maybe something along those lines might work? As for the SSR side I am not sure if you would need to execute it within a useEffect.

about 4 years ago · Juan Pablo Isaza Denunciar
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