Skip to content

Nuxt not working with sound #33

@ThimoDEV

Description

@ThimoDEV

Hi @Tahul ,

You asked for my experience with nuxt and this package. I tried to get it to work after the latest update, but it seems like it doesn't work. I have a sound in my public folder like this : public/sounds/back.wav

image

`<script setup>
import { useSound } from '@vueuse/sound'

const { play, sound } = useSound('/sounds/back.wav')
</script>

test `

This is my test component

modules: ['@vueuse/sound/nuxt'] sound: { sounds: { scan: true, }, },

Did I have something wrong or do I need to change something to get it to work?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions