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

Complie error with Angular 5.1 prod build #99

Closed
tamasfoldi opened this issue Dec 19, 2017 · 1 comment
Closed

Complie error with Angular 5.1 prod build #99

tamasfoldi opened this issue Dec 19, 2017 · 1 comment

Comments

@tamasfoldi
Copy link

Hi,

I've just tried to update my project to Angular 5.1 from Angular 5.0 and I received this message when compiled it with cli's prod build mode:

ERROR in ngx-clipboard/src/index.ts(14,17): Error during template compile of 'ClipboardModule'
  Function calls are not supported in decorators but 'InjectionToken' was called in 'CLIPBOARD_SERVICE_PROVIDER'
    'CLIPBOARD_SERVICE_PROVIDER' references 'WINDOW' at ngx-clipboard/src/clipboard.service.ts(106,22)
      'WINDOW' references 'WINDOW'
        'WINDOW' calls 'InjectionToken'.

Can you fix this issue?

@tamasfoldi
Copy link
Author

After updating to angular 5.1.2 I get the same error as in #100 . I've subscribed to that so closing this one.

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