VSCode JavaScript validation: 'React' refers to a UMD global, but the current file is a module. #1090
Answered
by
MauricioRobayo
MauricioRobayo
asked this question in
Q&A
-
Hello! I'm using VSCode and when I enable javascript validation in VSCode:
On every jsx file. I tried adding a
but the errors remain. Is there a way to enable VSCode js validation on jsx files without getting the |
Beta Was this translation helpful? Give feedback.
Answered by
MauricioRobayo
Oct 30, 2022
Replies: 1 comment
-
It needs to be a |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
MauricioRobayo
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It needs to be a
jsconfig.json
for VSCode to pick it as this is not a typescript project (duh!): https://code.visualstudio.com/docs/languages/jsconfig