#After the new update my IDE discord autocompletiontypings isnt working

1 messages · Page 1 of 1 (latest)

sweet patio
#

Post more details. What IDE are you using? What autocompletion? Inside IDE or on Discord?

lime nebula
#

WebStorm

rough sandal
#

that is intellissense...

lime nebula
#

ik

#

it was working fine after the last updates

sweet patio
#

Does the code run?

lime nebula
#

yes

#

My IDE threw hundreds of typescript errors like so

lime nebula
#

The errors are throw for the discord.js ts typings file

sweet patio
#

Who threw the errors? The IDE or TSC? If the code works, it means only the IDE has problems

lime nebula
sweet patio
#

If the TSC is throwing errors, it means the code doesn't work.. Like: it doesn't compile

#

Check the imports

lime nebula
sweet patio
#

Of discord.js

lime nebula
sweet patio
sweet patio
lime nebula
sweet patio
lime nebula
lime nebula
#

Only for the "setDescription" method

sweet patio
#

Check if you have discord.js installed. Maybe the IDE update erased it

lime nebula
sweet patio
#

Compile the code manually with tsc and post the errors

lime nebula
#

@sweet patio I've never used tsc by itself before so what exactly would I compile

sweet patio
lime nebula
sweet patio
#

If you're really sure you don't have, then just run tsc

sweet patio
#

Oh.. You need to specify the sources

#

I'm not sure, but maybe tsc ./**/*.ts

sweet patio
# lime nebula

Make a tsconfig.json file with content:

{
  "compilerOptions": {
    "target": "es5",
    "module": "commonjs",
    "sourceMap": true,
    "downlevelIteration": true
  },
  "exclude": ["node_modules"]
}
#

Then run tsc -p tsconfig.json

#

You might have to change target and module depending on your files

lime nebula
sweet patio