Home > Mobile >  VS Code Intellisense works for .ts files but not for .js files
VS Code Intellisense works for .ts files but not for .js files

Time:02-01

I am using firebase functions. VScode doesn't show me errors and suggestions for .js files, but if I change the extension to .ts it works! I don't use TypeScript for my project.

Also, I use it alongside JavaScript for hosting and Intellisense works well!

I don't know, what's wrong?

CodePudding user response:

You need to set up a jsconfig.json file. For how to do so, see the following:

  • Related