sound icon indicating copy to clipboard operation
sound copied to clipboard

Cannot use import statement outside a module

Open NicolasGuruphat opened this issue 1 year ago • 0 comments

Hi ! Jest raises an error when I try to run my test with npm run test:unit :

   /home/nicolas/repo/smooth-pomodoro/node_modules/@vueuse/sound/dist/index.mjs:1
    ({"Object.<anonymous>":function(module,exports,require,__dirname,__filename,jest){import { ref, onMounted, unref, watch } from 'vue-demi';

      SyntaxError: Cannot use import statement outside a module                                 

If you want to reproduce, here is the link of the project, the branch is use-vueuse-for-sound

PS : thanks for the module, it's super cool !

NicolasGuruphat avatar Nov 30 '23 18:11 NicolasGuruphat