#After the new update my IDE discord autocompletiontypings isnt working
1 messages · Page 1 of 1 (latest)
Post more details. What IDE are you using? What autocompletion? Inside IDE or on Discord?
that is intellissense...
Does the code run?
Look at this one
The errors are throw for the discord.js ts typings file
Who threw the errors? The IDE or TSC? If the code works, it means only the IDE has problems
The code works, but the tsc is throwing errors (From djs typings) that prevents any sort of code completion/typing based code assistance
If the TSC is throwing errors, it means the code doesn't work.. Like: it doesn't compile
Check the imports
what imports
my actual bot runs fine
Of discord.js
This?
If TSC is throwing errors, you can't compile the code, which means you can't run it. Likely you're running the last succesful compiled version
Yes, this stuff. I'm pretty sure you have way more of them
Yeah what about them lol
Do you get code completion for MessageEmbed?
I don't know what's going on then because my code runs/updates fine
Nope
Only for the "setDescription" method
Check if you have discord.js installed. Maybe the IDE update erased it
I do and I reinstalled everything too
Compile the code manually with tsc and post the errors
@sweet patio I've never used tsc by itself before so what exactly would I compile
Make a backup, go into project root folder, run tsc -p path/to/tsconfig.json
my project doesn't have a tsconfig. Do you mean the discord.js tsconfig file?
No, the one of your project
If you're really sure you don't have, then just run tsc
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
error TS18003: No inputs were found in config file 'C:/Users/noahg/Projects/Scalexx/tsconfig.json'. Specified 'include' paths were '["**/*"]' and 'exclude' paths were '["node_modules"]'.
I have no clue what's happening. It works for me