Encountering SCRIPT 1003 error on IE11 with webpack and VueJS

Viewed 5582

I have an application written in VueJS which uses Webpack to create the bundle.js file to deploy on the browser. This works fine on Chrome but when I run the app on IE 11, I get the following error...

SCRIPT1003: Expected ':'
bundle.js (23469,9)

The line 23469 in bundle.js looks like this...

const app = new __WEBPACK_IMPORTED_MODULE_3_vue__["a" /* default */]({
  router,
  render: h => h(__WEBPACK_IMPORTED_MODULE_4__App_vue___default.a)
}).$mount('#app');

Line 23469 is specifically pointing to the 'router,'

I cannot quite figure out what the issue is. Any help would be much appreciated.

1 Answers
Related