Skip to content

Build failure trying to use structurae in typescript project #41

@Swoorup

Description

@Swoorup

I currently have a npm project. And trying to use structurae appears to fail when generating typings in vite project..

$ tsc -p tsconfig.build.json && vite build
       ../../node_modules/structurae/types/grid.d.ts(42,65): error TS2526: A 'this' type is available only in a non-static member of a class or interface.
       ../../node_modules/structurae/types/grid.d.ts(57,86): error TS2344: Type 'T' does not satisfy the constraint 'abstract new (...args: any) => any'.
       ../../node_modules/structurae/types/grid.d.ts(64,94): error TS2344: Type 'T_1' does not satisfy the constraint 'abstract new (...args: any) => any'.
       ../../node_modules/structurae/types/symmetric-grid.d.ts(42,65): error TS2526: A 'this' type is available only in a non-static member of a class or interface.
       ../../node_modules/structurae/types/symmetric-grid.d.ts(57,71): error TS2344: Type 'T' does not satisfy the constraint 'abstract new (...args: any) => any'.
       ../../node_modules/structurae/types/symmetric-grid.d.ts(64,94): error TS2344: Type 'T_1' does not satisfy the constraint 'abstract new (...args: any) => any'.
error Command failed with exit code 2.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions