[Vuejs]-Unexpected token import – jsfiddle

2👍

Imports does not work on JSFIDDLE. You need to install the package and refer using import, which is not supported. Instead you can do this,

You can refer the library using external url,

https://unpkg.com/vue-toastr-2@0.0.8/dist/vue-toastr-2.js
https://unpkg.com/vue-toastr-2/dist/vue-toastr-2.min.css

DEMO

Leave a comment