Skip to content Skip to sidebar Skip to footer

Vue.JS 2.5.1 : Uncaught SyntaxError: Unexpected Token Export

I was trying to make a radio button using VueJS and Bootstrap Vue, but this happens when I make it. I'm expecting this to be syntax error just like what it said, but I can't seem f

Solution 1:

If you are going to use the CDN approach, VueJS starts out like

<!-- Begin of area that is impacted by VueJS -->
<div id="app">
   <b-form-group label="Radios using <code>options</code>">
     <b-form-radio-group id="radios1" v-model="selected" :options="options" name="radioOpenions">
     </b-form-radio-group>
   </b-form-group>
</div>
<!-- End of area that is impacted by VueJS -->


<script>
 var app = new Vue({
   el: '#app',
   data: {
      ...
      }
   })
<script>

The '#app' is what ties the sections together, not import/export


Post a Comment for "Vue.JS 2.5.1 : Uncaught SyntaxError: Unexpected Token Export"