Describe the bug
This is probably the most annoying feature in stackblits. I cannot figure out how to resolve these errors. I have googled 50 times and tried numerous suggestions. Why does stackblitz webcontainer not come preconfigured by default to understand elements like div?
'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.ts(2686)
(property) JSX.IntrinsicElements.div: React.DetailedHTMLProps<React.HTMLAttributes, HTMLDivElement>
Link to the blitz that caused the error
any react project
Steps to reproduce
Use any standard html component such as div and it complains about unknown
Expected behavior
Expect it to know div is a standard component
Parity with Local
Screenshots
No response
Platform
Version = 1.84.0
Hash = 3b0b7194bc6b567c2eaf4c96a5759098469dcf59
WebContainer = 4d9fd228
Browser name = Chrome
Full version = 136.0.0.0
Major version = 136
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
performance.memory = {
"totalJSHeapSize": 236700783,
"usedJSHeapSize": 227369183,
"jsHeapSizeLimit": 4294705152
}
Additional context
No response
Describe the bug
This is probably the most annoying feature in stackblits. I cannot figure out how to resolve these errors. I have googled 50 times and tried numerous suggestions. Why does stackblitz webcontainer not come preconfigured by default to understand elements like div?
'React' refers to a UMD global, but the current file is a module. Consider adding an import instead.ts(2686)
(property) JSX.IntrinsicElements.div: React.DetailedHTMLProps<React.HTMLAttributes, HTMLDivElement>
Link to the blitz that caused the error
any react project
Steps to reproduce
Use any standard html component such as div and it complains about unknown
Expected behavior
Expect it to know div is a standard component
Parity with Local
Screenshots
No response
Platform
Additional context
No response