Recently, my text color has been of for js,jsx,ts,tsx files in VS Code.
I don’t really know what happened but it’s not working all of a sudden.
As you see, the file is detected to be a typescript react file, but I do not have any text coloring.
3
This warn come from Eslint rules when using Nextjs, it advice that you should use component from Nextjs. Follow this post to find your problem!
Error: Do not use <img>. Use Image from 'next/image' instead. – Next.js using html tag <img /> ( with styled components )
Downgrade plugin JavaScript and TypeScript Nightly to v5.0.20221115
solved by adding following settings :
"files.associations": { "*.tsx": "javascript" }
Ref: https://code.visualstudio.com/docs/languages/overview#_adding-a-file-extension-to-a-language
OR
This is caused by the Javascript and Typescript Nightly extension. You can either downgrade or disable it to temporarily fix it.
Click here to cancel reply.
3
Answers
This warn come from Eslint rules when using Nextjs, it advice that you should use component from Nextjs. Follow this post to find your problem!
Error: Do not use <img>. Use Image from 'next/image' instead. – Next.js using html tag <img /> ( with styled components )
Downgrade plugin JavaScript and TypeScript Nightly to v5.0.20221115
solved by adding following settings :
Ref: https://code.visualstudio.com/docs/languages/overview#_adding-a-file-extension-to-a-language
OR
This is caused by the Javascript and Typescript Nightly extension. You can either downgrade or disable it to temporarily fix it.