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

TypeError: ClapDetector is not a constructor #20

Open
rushaan1 opened this issue Dec 3, 2021 · 1 comment
Open

TypeError: ClapDetector is not a constructor #20

rushaan1 opened this issue Dec 3, 2021 · 1 comment

Comments

@rushaan1
Copy link

rushaan1 commented Dec 3, 2021

import ClapDetector from 'clap-detector'
const clap = new ClapDetector()

It keeps giving that error & i have also installed the module correctly

@MrDolch
Copy link

MrDolch commented Dec 12, 2021

I ran into the same issue. I solved for me by using:

import ClapDetector from 'clap-detector';

const clap = new ClapDetector.default();

pi@raspberrypi:~/Projekte/clap-detection $ node -v
v14.18.2

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

2 participants