Project can be checked out at https://github.com/aitudor/hello-primevue
I also tried to checkout the primevue quickstart project (the https://github.com/primefaces/primevue- ... quickstart) and use the DataTable component and that worked.
Any idea why I get the error? I can see that this is related vue-loader, but I do not know what the problem is and how should be fixed.
[1]
Code: Select all
error in ./node_modules/primevue/components/datatable/DataTable.vue?vue&type=script&lang=js
Module parse failed: Unexpected token (310:67)
File was processed with these loaders:
* ./node_modules/cache-loader/dist/cjs.js
* ./node_modules/vue-loader-v16/dist/index.js
You may need an additional loader to handle the result of these loaders.
| if (this.reorderableColumns) {
| let columnOrder = [];
> this.columns.forEach(col => columnOrder.push(col.props?.columnKey||col.props?.field));
| this.d_columnOrder = columnOrder;
| }
@ ./node_modules/primevue/components/datatable/DataTable.vue?vue&type=script&lang=js 1:0-160 1:0-160 1:161-310 1:161-310
@ ./node_modules/primevue/components/datatable/DataTable.vue
@ ./node_modules/primevue/datatable.js
...