FULL error message (including stack trace):
`ERROR in ./~/vue-tables-2/lib/methods/render.js
Module parse failed: C:\xampp\htdocs\ProjectLaravel\CIRMS\node_modules\vue-tables-2\lib\methods\render.js Unexpected token (17:9)
You may need an appropriate loader to handle this file type.
relevant code:
webpack.config.js
`
var webpack = require('webpack');
var fileName = "list.js"; //source and compiled filename
var entryFile = "./public/js/Core/Brand/"+fileName;
var destinationFolder = "./public/js/Core/Brand/compiled";
@ ./~/vue-tables-2/lib/mixins/methods.js 27:14-42 @ ./~/vue-tables-2/lib/table.js @ ./~/vue-tables-2/lib/v-server-table.js @ ./~/vue-tables-2/index.js @ ./public/js/Core/Brand/list.js `
var fileName = "list.js"; //source and compiled filename var entryFile = "./public/js/Core/Brand/"+fileName; var destinationFolder = "./public/js/Core/Brand/compiled";
module.exports = { entry: entryFile,
};
`.babelrc file
{ "presets": [ "es2015" ], "plugins": [ "transform-vue-jsx" ] }
JS File` var Vue= require('vue'); var VueTables = require('vue-tables-2');
var data = []; Vue.use(VueTables.client, { compileTemplates: true, highlightMatches: true, pagination: { }, texts: { filter: "Search:" }, datepickerOptions: { showDropdowns: true } });
const app = new Vue({ el: '#app',
}); `
Thanks for the help!