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

Can't use on angular #25

Open
Freir96 opened this issue Sep 15, 2020 · 1 comment
Open

Can't use on angular #25

Freir96 opened this issue Sep 15, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Freir96
Copy link

Freir96 commented Sep 15, 2020

Describe the bug
I have imported accessibilityButtons as shown in the README, and it didn't casue any error:
import { accessibilityButtons } from 'accessibility-buttons/dist/js/accessibility-buttons';
But Calling accessibilityButtons() results in error Object(...) is not a function.
If this library does not work on angular please update your README.

To Reproduce
Steps to reproduce the behavior:

  1. Create Angular project
  2. import accessibilityButtons in a component
  3. call accessibilityButtons()
  4. See error

Expected behavior
The accessibilityButtons should be initiated

Enviroment (please complete the following information):

  • Windows
  • Opera

** Error message

main.ts:12 TypeError: Object(...) is not a function
  at new AppComponent (app.component.ts:42)
  at createClass (core.js:24584)
  at createDirectiveInstance (core.js:24400)
  at createViewNodes (core.js:35006)
  at createRootView (core.js:34878)
  at callWithDebugContext (core.js:36407)
  at Object.debugCreateRootView [as createRootView] (core.js:35644)
  at ComponentFactory_.create (core.js:23542)
  at ComponentFactoryBoundToModule.create (core.js:19549)
  at ApplicationRef.bootstrap (core.js:32042)
@Freir96 Freir96 added the bug Something isn't working label Sep 15, 2020
@tiagoporto
Copy link
Owner

Thanks @Freir96, I'll take a look

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants