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

168
Visualizações
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 à 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