Pages

22 October, 2023

VSCode IntelliSense autocomplete suddenly stopped working with node modules

I'm trying to make a steam bot with JS, and IntelliSense does not work.





I have my SteamUser object declared:
const SteamUser = require("steam-user");
const client = new SteamUser()



It recognizes the logOn function:





But IntelliSense doesn't work. I tried restarting VSCode, entering command pallete and using the Developer: Reload Window command, but to no avail.


In a discord.js project IntelliSense also doesn't work:





I have run npm install:





Here is my package.json:
{
"dependencies": {
"steam-user": "^5.0.1"
}
}



EDIT: Just found out that local requires also don't work.


Example:
const config = require("./config.json")






config.json:
{
"accountName": "something",
"password": "something2"
}

No comments:

Post a Comment

Thanks