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

235
Vistas
How can we use ES6 modules in Node program without "type" : "module" in package.json?

I have a server (implemented with NodeJS), and a client (implemented using Vue, compiled with vue-cli) that share some code. The problem is that Vue does not support "type": "module" option, and I cannot run both programs without getting an error from one side or another.

I'm wondering: is that passobile, and how can we use ES6 modules in a NodeJS script, without specifying "type": "module" inside the package.json file ?

Thanks

over 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

I have finally found a workaround: using esm nodejs package: https://www.npmjs.com/package/esm

over 4 years ago · Santiago Trujillo 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