I'm excited to dive into using vue for my upcoming project. I decided to incorporate Hooper, an image carousel, and went ahead to install it using npm install hooper
. To implement it in my script file, I included the following code:
import { Hooper, Slide } from 'hooper';
import 'hooper/dist/hooper.css';
export default {
name: 'App',
components: {
Hooper,
Slide
}
}
Unfortunately, I encountered an error right from the start:
Uncaught SyntaxError: Unexpected token {
I've tried installing it in various locations - one folder above the script file, beside it, and in a separate folder. Despite this, the script file fails to recognize the bracket. How can I troubleshoot and resolve this issue?