Skip to content

Cannot use namespace 'PerfectScrollbar' as a type #165

Description

@throrin19

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 :/

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions