ternary expression breaks in babel/webpack vue3

Viewed 66

I am trying to serve or build my application and it breaks on the following

Module parse failed: Unexpected token (15:41)
File was processed with these loaders:
 * ../node_modules/babel-loader/lib/index.js
 * ../node_modules/vue-loader/dist/index.js
You may need an additional loader to handle the result of these loaders.
|   computed: {
|     typeComponent: function () {
>       let type = this.line.type ?? 'standard';

Any ideas? it says i need a specific loader.

1 Answers
Related