I am getting this error when trying to use tsc:
node_modules/@discordjs/rest/dist/lib/handlers/IHandler.d.ts:1:34 - error TS7016: Could not find a declaration file for module 'node-fetch'. '/home/chris/WebstormProjects/socom-discord-bot/node_modules/node-fetch/lib/index.js' implicitly has an 'any' type.
Try `npm i --save-dev @types/node-fetch` if it exists or add a new declaration (.d.ts) file containing `declare module 'node-fetch';`
1 import type { RequestInit } from 'node-fetch';
It seems to be the same issue as this project had:
apollographql/apollo-tooling#1686
I may be wrong but I believe this package needs to be a dependency of the rest node module.
- Priority this issue should have – please be realistic and elaborate if possible: Highest, this is breaking TypeScript compilations