I am currently creating a new app using Frappe & ERPNext and i am using VSCode as my main editor. At first, i face some importing errors in all python files which i solved by choosing my interpreter. However, in JavaScript files, most of the imported modules and methods are generating errors about importing them. For example, in the automatically generated JS file of the custom module, VSCode can not recognize “frappe” and show me an error:
Sorry, I don’t have much experience with VSCode. Was autocompletion working when you had TS type-checking on but then disappeared when you turned it off?
It stopped working after i removed the jsconfig.json file.
However, i modified it and i am testing it for now, i am not sure if it is working as expected or not but right now i have the auto completion and suggestions working fine. So , i will share it here and mark it as resolved and if anyone have better solution or if i found out that it is not working as expected i will share it here as well. so, thank you for your help
create jsconfig.json in the apps directory with the following content: