Closed mrob11 closed 6 years ago
Looking a little deeper it's not at all likely that this has anything to do with the Chrome inspector warning. All the same, I don't know if something has happened with respect to dependency compatibility or what but I can't get the most basic example working.
It's a redux-sounds bug, I'll post a workaround in a minute and a fix within the week. Sorry about that and thanks for the bug report and repro.
Cool, thanks for the reply. Really like the simplicity of this library, presuming it'll work :)
So the first issue is wrong documentation in the very first example 🙃 It shouldn't be meta: { sound: "foo" }
but meta: { sound: { play: "foo" } }
The other examples include it, but I forgot to update this one.
The second is a bug with simple sounds. Sprites work, so a workaround would be to treat your sounds as sprites until I publish a fix.
soundsData becomes:
{
foo: {
src: [require("./foo.mp3")],
sprite: {
start: [0, 5000] // <- [start point in millis, duration in millis]
}
},
}
And the play action: { type: "PLAY_SOUND", meta: { sound: { play: "foo.start" } } }
Again apologies for the inconvenience.
Still working on this, "within the week" was slightly optimistic :)
@GeKorm Sorry to bug you, but do you have any ETA on this? Currently having the same issue which is slowing down my development on my project.
Thanks in advance
@KennyLindahl I'll work on this today, so I expect to publish the new version tomorrow
@GeKorm Thanks for your update, much appreciated
@mike360 @KennyLindahl I just published 3.0.1 Please let me know if it solves the issue for you, or if you have any questions
@GeKorm
Got this when i run my project with redux-sounds v3.0.1
:
🚨 /my-project/node_modules/redux-sounds/node_modules/howler/dist/howler.js: ENOENT:
no such file or directory, open '/my-project/node_modules/redux-sounds/node_modules/howler/dist/howler.js'
It works when i revert to redux-soundsv3.0.0
.
I have howler v2.0.15
in my dependencies.
Huh must've messed up with webpack lemme check
@KennyLindahl
I can't reproduce this actually, not in my repos nor in Mike's repo above. What's your setup? Can you try removing Howler (it's not a peer dependency) and maybe remove node_modules/ and clear your npm/yarn cache before re-installing?
@GeKorm Thanks for the feedback. Yep, then it must be on my side. I removed node_modules and re-installed with yarn and still got the error. I will have a look at i later, thanks.
@GeKorm It works as expected after clearing my yarn cache. Thanks a lot!
Yay glad I could help!
I cannot get this library to actually play sounds in the project I'm working on so I created a minimal reproduction repo just trying to get the library working at all.
The mp3 files are loaded (can see via network tab), but do not play when action fires.
There is a warning in the Chrome inspector:
But that is the only hint I have.