sound icon indicating copy to clipboard operation
sound copied to clipboard

Not work in Vuejs 3

Open alex-wdmg opened this issue 3 years ago • 1 comments

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 avatar Apr 15 '23 10:04 alex-wdmg

@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 🙂

pascalwengerter avatar Sep 23 '23 14:09 pascalwengerter