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

Build failure trying to use structurae in typescript project #41

Open
Swoorup opened this issue Sep 13, 2023 · 0 comments
Open

Build failure trying to use structurae in typescript project #41

Swoorup opened this issue Sep 13, 2023 · 0 comments

Comments

@Swoorup
Copy link
Contributor

Swoorup commented Sep 13, 2023

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.
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