Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use import statement outside a module #47

Open
NicolasGuruphat opened this issue Nov 30, 2023 · 0 comments
Open

Cannot use import statement outside a module #47

NicolasGuruphat opened this issue Nov 30, 2023 · 0 comments

Comments

@NicolasGuruphat
Copy link

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 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant