discord-music-quizzer icon indicating copy to clipboard operation
discord-music-quizzer copied to clipboard

Error when running with Node.js 15.x

Open fjukstad opened this issue 3 years ago • 1 comments

Thanks for a great project! Here's a heads up. When I tried running the bot with Node.js 15.x I got the following error:

~/discord-music-quizzer$ npm start

> [email protected] start
> tsc && node dist/index.js

node_modules/@types/request/index.d.ts:24:27 - error TS7016: Could not find a declaration file for module 'form-data'. '/home/azureuser/discord-music-quizzer/node_modules/form-data/lib/form_data.js' implicitly has an 'any' type.
  Try `npm install @types/form-data` if it exists or add a new declaration (.d.ts) file containing `declare module 'form-data';`

24 import FormData = require('form-data');
                             ~~~~~~~~~~~


Found 1 error.

Uninstalled 15.x, installed 12.x instead, and now it runs as it should.

fjukstad avatar Mar 24 '21 20:03 fjukstad

Thanks for the report. I'll see what I can do

nicoeg avatar Mar 25 '21 13:03 nicoeg