Skip to content
New issue

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

Angular2+ compatibility #138

Open
jmurowaniecki opened this issue May 11, 2020 · 0 comments
Open

Angular2+ compatibility #138

jmurowaniecki opened this issue May 11, 2020 · 0 comments

Comments

@jmurowaniecki
Copy link

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:

{
  ...
  "projects": {
      ...
      "architect": {
        ...
        "build": {
          ...
          "options": {
            ...
            "scripts": [
              "node_modules/pizzicato/distr/Pizzicato.min.js"
            ]
          }
...

I hope it helps someone's else.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant