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.