The class 'SoundService' cannot be created via dependency injection, as it does not have an Angular decorator. This will result in an error at runtime.
Either add the @Injectable() decorator to 'SoundService', or configure a different provider (such as a provider with 'useFactory').
I'm using Pizzicato || window['Pizzicato'] || ... in order to work around the problem, including the module on angular.json as below:
The class 'SoundService' cannot be created via dependency injection, as it does not have an Angular decorator. This will result in an error at runtime.
Either add the @Injectable() decorator to 'SoundService', or configure a different provider (such as a provider with 'useFactory').
I'm using
Pizzicato || window['Pizzicato'] || ...
in order to work around the problem, including the module onangular.json
as below:I hope it helps someone's else.