Skip to content

TypeError: Picker is not a constructor #585

@DanielTriolla

Description

@DanielTriolla

im using filestack-js and filestack-react, and in the app the costume component i use works great,
but for some reason, when i test it with vitest, the component isnt shown in the dom, and this error is presented:

TypeError: Picker is not a constructor
 ❯ PickerLoader.<anonymous> node_modules/filestack-js/build/src/lib/picker.ts:833:12
 ❯ step node_modules/tslib/tslib.js:196:27
 ❯ Object.next node_modules/tslib/tslib.js:177:57
 ❯ fulfilled node_modules/tslib/tslib.js:167:62

somebody know about this issue? thank you!

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