Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

160
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!