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

162
Vistas
Nullish coalescing operator in third part library with Nuxt

I have an error that a didn't understand.

I have a project build with Nuxt 2.15.8 and the default config of webpack (no override).

I also have a third part library (my own) that include a nullish coalescing operator like this index = a.indexOf(char) ?? b.indexOf(char); (in the built folder)

When I used a nullish coalescing operator in nuxt project, everything is Ok. When I start the project with third part library, I have an error like this :

Module parse failed: Unexpected token
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file

I assume that the loader is not compatible (certainly the version of Ecma), but I don't understand why it works on project but not on third part library.

Don't hesitate to ask me for more information if you need :)

Thanks a lot for your answer.

about 4 years ago · Santiago Gelvez
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