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

Not work in Vuejs 3 #37

Open
alex-wdmg opened this issue Apr 15, 2023 · 1 comment
Open

Not work in Vuejs 3 #37

alex-wdmg opened this issue Apr 15, 2023 · 1 comment

Comments

@alex-wdmg
Copy link

Failed to compile.

./node_modules/@vueuse/sound/dist/index.mjs 11:52
Module parse failed: Unexpected token (11:52)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
| if (typeof onload === "function")
| onload.call(this);

duration.value = (duration.value || sound.value?.duration() || 0) * 1e3;

| if (autoplay === true) {
| isPlaying.value = true;

@pascalwengerter
Copy link

@alex-wdmg could you provide more information on your setup (e.g. content of package.json, nuxt config if applicable, and the full Vue component where you'd like to use vueuse/sound)? Given the limited context you've initially provided it'll be very hard for anyone to help you with this 🙂

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

2 participants