The index.d.ts does not work
niklas-gund opened this issue · comments
Please:
- Check for duplicate issues. Please file separate requests as separate issues on GitHub.
- Describe how to reproduce the bug.
run the backend/tests/imageRepTest.ts for example
the import is still not recognized properly - Use the latest version, if possible. Always indicate which version you are using.
Current main - Include error messages or gifs/screenshots of problematic behavior, if applicable.
TSError: ⨯ Unable to compile TypeScript: src/representative.ts:5:24 - error TS7016: Could not find a declaration file for module 'colorthief'. 'Y:/Repos/HIE - dev/Hierarchical-Image-Explorer/node_modules/colorthief/dist/color-thief.js' implicitly has an 'any' type.
- Provide an example.
Can you be more specific @niklas-gund? It built when I checked.
Building works for me as well.
When running ts-node .\tests\imageRepTest.ts
in the backend folder the error still appears, same with nodemon
and ts-node-dev
I can't look into this for a few days, will have arm surgery today, sorry.
I hope everything went well.
I have fixed the issue in #36
For type declarations to work with ts-node
you have to put them into the files list in the ts-config