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

Cannot use namespace 'PerfectScrollbar' as a type #165

Open
throrin19 opened this issue Feb 1, 2024 · 0 comments
Open

Cannot use namespace 'PerfectScrollbar' as a type #165

throrin19 opened this issue Feb 1, 2024 · 0 comments

Comments

@throrin19
Copy link

Hello, I try to migrate my project to full ESM but I have TS errors using PerfectScrollbar. It works fine before this.

I have several errors on using types part or class type in my code, one said namespace can't export Options, another you can't use namespace as type. But I can't find how to fix this :

image

This is TS errors for all parts :

  • PerfectScrollbar.Options : TS2694
  • ref<PerfectScrollbar>() : TS2709
  • new PerfectScrollbar() : TS2351

But normally the types availables with the package seems to be corrects. I don't understand the problem :/

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