[Vuejs]-Error "; expected" in script tag of a vue file

0👍

I can only imagine that you must be trying to learn Vue blindfolded. Even a cursory glance at Vue documentation or any tutorial should reveal the proper syntax for Vue <script>

<script>
export default {
  data() {
    return {
      isShown: true
    }
  }
}
</script>

Please read documentation or try Googling how to use a framework before posting questions about the fundamental basics. StackOverflow is not the best place for these types of questions.

Leave a comment