Sitecore JSS Common problems - Visual Studio Code - "JSX element implicitly has type 'any' "
Sometimes we got some strange errors for VisualStudio and Visual Studio Code.
I got the "JSX element implicitly has type 'any' ", an error that make a RED underline over all the code into the component we are developing. It appears to be related to a change into the components dependency for the current NodeJSS project.
The solution it appears to be easy. It is reloading VSCode. You can do it following the next steps:
Ctrl+Shift+P -or- ⌘+shift+P
And type:
Developer: Reload Window
Probably will work closing VSCode and open the project again too.
The original solution was found in Stackoverflow:
https://stackoverflow.com/questions/37674017/how-to-solve-jsx-element-implicitly-has-type-any-error
Comments
Post a Comment