We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Browser is logging ion_sound__WEBPACK_IMPORTED_MODULE_7___default.a.sound is not a function:
ion_sound__WEBPACK_IMPORTED_MODULE_7___default.a.sound is not a function
import ion from 'ion-sound' ion.sound({ sounds: [ { name: 'alarm_bell', volume: 1.0, loop: true } // { // name: 'notify_sound', // } ], volume: 0.5, path: '/sound/', preload: true })
Any idea why this is ?
The text was updated successfully, but these errors were encountered:
If you look at the source code when you import 'ion-sound' it will get attached to the window. The following code should work.
'ion-sound'
window
-import ion from 'ion-sound' +import 'ion-sound' -ion.sound({ +window.ion.sound({ sounds: [ { name: 'alarm_bell', volume: 1.0, loop: true } // { // name: 'notify_sound', // } ], volume: 0.5, path: '/sound/', preload: true })
Sorry, something went wrong.
No branches or pull requests
Browser is logging
ion_sound__WEBPACK_IMPORTED_MODULE_7___default.a.sound is not a function
:Any idea why this is ?
The text was updated successfully, but these errors were encountered: