Even though I've installed & referenced the Typings library 'react' like this
/// <reference path="../../../typings/browser.d.ts" />
I'm still getting the error below:
Is there another Typings library I should be installing as well?
To solve the error "JSX element implicitly has type 'any' because no interface 'JSX. IntrinsicElements' exists", make sure to install the typings for react running the command npm install --save-dev @types/react@latest @types/react-dom@latest and restart your IDE. Copied!
The error "Property does not exist on type 'JSX. IntrinsicElements'" occurs when a component's name starts with a lowercase letter. To solve the error, make sure to always start component names with a capital letter, install the types for React and restart your dev server.
I resolved this issue by installing the react type definition.
Try to run yarn add --dev @types/react
I solved this issue by reloading VSCode.
Ctrl + p > Developer: Reload Window
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With