I wanted to check out vue and use it for my next project. I wanted to use Hooper, a image carousel. I've installed it via npm install hooper
. Now in my script file I use
import { Hooper, Slide } from 'hooper';
import 'hooper/dist/hooper.css';
export default {
name: 'App',
components: {
Hooper,
Slide
}
}
But that already throws an error in the first line:
Uncaught SyntaxError: Unexpected token {
I've already installed it in one folder above the script file, besides it, and in a folder, but the js file
does not recognize the bracket. How do I solve this?