This error is reported after learning vue, to use scaffolding. How to solve Cannot read property 'babel' of undefined?

Code address

https://github.com/wohuifude1.

Favlist.vue

<template>
  <div v-for="n in 10"></div>
</template>

<script>
  export default {
    data () {
      return {
        msg: "Hello World!"
      }
    }
  }
</script>

<style>
  html{
    background: red;
  }
</style>


is the value of el in, new Vue in that main.js incorrect? Usually bind an id value. You can't bind body tags like this directly


change to an editor with syntax errors and you will know what's wrong


have you solved

Menu