Typescript error
talgat-ruby opened this issue · comments
Initial checklist
- I understand this is a bug report and questions should be posted in the Community Forum
- I searched issues and couldn’t find anything (or linked relevant results below)
Link to runnable example
No response
Steps to reproduce
Run the tsc check for @UPPY dashboard.
Expected behavior
Should finish successfully
Actual behavior
node_modules/@uppy/dashboard/src/utils/getFileTypeIcon.tsx(1,1): error TS6133: 'h' is declared but its value is never read.
Hi, can you give us a reproducible example on StackBlitz or CodeSandbox? This issue is not actionable at the moment.
Some templates:
Hi, can you give us a reproducible example on StackBlitz or CodeSandbox? This issue is not actionable at the moment.
Thank you, @Murderlon!
Turns out I've been importing getFileTypeIcon
. Because it would generate icon for my custom dashboard. And during typescript check it would also check your files.
Here is the reproducible example: https://stackblitz.com/edit/vitejs-vite-mzaxtt?file=src%2FApp.tsx
Fixed the issue with importing from "./lib" instead of "./src". I will close the issue.