Not work in Vuejs 3
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;
@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 🙂