Closed jgeluk closed 5 years ago
Hi @jgeluk,
From the error message, I assume that you are using the library in a TypeScript project. The current version (v0.x) is not using TypeScript for type-checking so the TypeScript compiler is not going to find any type definitions associated with the module.
You can solve the TypeScript error by creating a type declaration file cp-react-tree-table.d.ts
with the following content:
declare module 'cp-react-tree-table';
NOTE: If you are interested in out of the box support for TypeScript, the next version (v1.0) is written in TypeScript and it is going to be released in a few weeks.
No d.ts yet. Even if the project is written in TypeScript.
You are right, @altavir. I'm going to change the build process to generate the definition files in the next few days.
OK, I've even painfully reproduced the build (Kotlin-JS, completely unfamiliar with JS/TS stack), but it gives type error.
Hi @altavir,
Commit d5ce84e3388b5ce42514efab348e1a3c9ecde3f1 (npm: 1.0.0-beta.6
) should fix this issue by generating a declaration file at build time.
Thanks, I've already created manual bindings for kotlin, but I will check it later.
Getting an error like:
On the import statement (as copied from the example)