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

Uncaught TypeError: Class extends value #<Object> is not a constructor or null #48

Open
viv3kc opened this issue Jul 19, 2022 · 1 comment

Comments

@viv3kc
Copy link

viv3kc commented Jul 19, 2022

Whenever I import Sema or RateLimit.

i.e import { RateLimit, Sema } from 'async-sema';

I'm getting the following error:

Uncaught TypeError: Class extends value #<Object> is not a constructor or null

Is there any workaround for it?

Thanks.

@OlliV
Copy link
Collaborator

OlliV commented Jul 21, 2022

Is this an ECMAScript import? I think a commonJS require is needed.

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

Successfully merging a pull request may close this issue.

2 participants