I encountered an issue while working with TypeScript
src/usecases/Reports/GenerateReportUseCase.ts(7,23): error TS7016: Could not find a declaration file for module 'convert-json-to-csv'.
This package lacks typings, which results in an error when running
npm i --save-dev @types/convert-json-to-csv
My folder structure is as follows:
https://i.sstatic.net/wUbH1.png
Within index.d.ts, I have added the following declaration:
declare module 'convert-json-to-csv';
In my tsconfig file, I included this line:
"typeRoots": ["./src/types"],
What could be causing this issue?