Replies: 8 comments 9 replies
-
Hi @shinpanda Thank you for contacting us. I have a few questions. Can you tell me what version of Handsontable, NPM, and Node.js you use? |
Beta Was this translation helpful? Give feedback.
-
@shinpanda @AMBudnik {
"compilerOptions": {
"target": "ES2020",
"useDefineForClassFields": true,
"lib": ["ES2020", "DOM", "DOM.Iterable"],
"module": "ESNext",
"skipLibCheck": true,
- "moduleResolution": "bundler",
+ "moduleResolution": "Node",
+ "esModuleInterop": true,
"allowImportingTsExtensions": true,
"resolveJsonModule": true,
"isolatedModules": true,
"noEmit": true,
"jsx": "react-jsx",
"strict": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true
},
"include": ["src"],
"references": [{ "path": "./tsconfig.node.json" }]
} |
Beta Was this translation helpful? Give feedback.
-
"Temporary" Solution while waiting for a patch |
Beta Was this translation helpful? Give feedback.
-
Is this problem solved in 13.1.0? |
Beta Was this translation helpful? Give feedback.
-
Hi @youhogeon It isn't fixed yet; we will update this issue once it's done. |
Beta Was this translation helpful? Give feedback.
-
Recently, we released Handsontable 14.0, where we addressed some TS issues. I rechecked this issue, and it seems no longer present. Please check it on your side and confirm if the problem is gone. |
Beta Was this translation helpful? Give feedback.
-
I'm closing this topic as the issue was solved. |
Beta Was this translation helpful? Give feedback.
-
If you use it without the Node module resolution ( Like these:
|
Beta Was this translation helpful? Give feedback.
-
I installed the library using npm and created a table, but when I imported it, the following error occurred.
error TS7016: Could not find a declaration file for module 'handsontable/registry'. '/node_modules/handsontable/registry.mjs' implicitly has an 'any' type.
There are types at '/node_modules/handsontable/registry.d.ts', but this result could not be resolved when respecting package.json "exports". The 'handsontable' library may need to update its package.json or typings.
I did a search and found that writing the following to the package.json file for that library in the node_modules folder will find the type just fine, but it's not a viable alternative since it's only available locally. Let me know if there's another way I can share the project and work around this temporarily.
Below are my tsconfig.json options.
Beta Was this translation helpful? Give feedback.
All reactions