nicoeg / discord-music-quizzer

Discord music quiz bot
22 stars 18 forks source link

Error when running with Node.js 15.x #11

Open fjukstad opened 3 years ago

fjukstad commented 3 years ago

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

> music-quizzer@1.0.0 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.

nicoeg commented 3 years ago

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