Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49083

Vue unit test - SyntaxError: Cannot use import statement outside a module

$
0
0

I’ve just created a fresh Ionic Vue project using Ionic Start and have opened up the vue UI tool and run the Unit Test task. I get the following error:

SyntaxError: Cannot use import statement outside a module

      23 | 
      24 | <script lang="ts">
    > 25 | import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/vue';
         | ^
      26 | import { defineComponent } from 'vue';
      27 | 
      28 | export default defineComponent({

Can anyone point me in the right direction for fixing this - I was hoping the unit test would pass for a fresh new project :slight_smile:

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 49083

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>