Title: TSX: Property does not exist on type 'JSX.IntrinsicElements' · Issue #15449 · microsoft/TypeScript · GitHub
Open Graph Title: TSX: Property does not exist on type 'JSX.IntrinsicElements' · Issue #15449 · microsoft/TypeScript
X Title: TSX: Property does not exist on type 'JSX.IntrinsicElements' · Issue #15449 · microsoft/TypeScript
Description: TypeScript Version: 2.3.1 Code import * as React from 'react'; declare namespace JSX { interface IntrinsicElements { 'heyo': any } } let Something = React.createClass({ render: function() { return (
Open Graph Description: TypeScript Version: 2.3.1 Code import * as React from 'react'; declare namespace JSX { interface IntrinsicElements { 'heyo': any } } let Something = React.createClass({ render: function() { return ...
X Description: TypeScript Version: 2.3.1 Code import * as React from 'react'; declare namespace JSX { interface IntrinsicElements { 'heyo': any } } let Something = React.createClass({ render: func...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/15449
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"TSX: Property does not exist on type 'JSX.IntrinsicElements'","articleBody":"\u003c!-- BUGS: Please use this template. -->\r\n\u003c!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n\u003c!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\n**TypeScript Version:** 2.3.1\r\n\r\n**Code**\r\n\r\n```tsx\r\nimport * as React from 'react';\r\n\r\ndeclare namespace JSX {\r\n interface IntrinsicElements {\r\n 'heyo': any\r\n }\r\n}\r\n\r\nlet Something = React.createClass({\r\n render: function() {\r\n return (\u003cdiv>\u003cheyo>foo\u003c/heyo>\u003c/div>);\r\n }\r\n})\r\n```\r\n\r\n**Expected behavior:**\r\n\r\nI expect it to compile without error.\r\n\r\n**Actual behavior:**\r\n\r\nRunning this command:\r\n\r\n```\r\ntsc --jsx react --module \"amd\" --target es2017 test.tsx \r\n```\r\n\r\nI get this output:\r\n\r\n```\r\ntest.tsx(11,22): error TS2339: Property 'heyo' does not exist on type 'JSX.IntrinsicElements'.\r\ntest.tsx(11,31): error TS2339: Property 'heyo' does not exist on type 'JSX.IntrinsicElements'.\r\n```\r\n\r\nI got the `declare` statement from https://github.com/Microsoft/TypeScript/issues/4648","author":{"url":"https://github.com/iffy","@type":"Person","name":"iffy"},"datePublished":"2017-04-28T18:21:26Z","url":"https://github.com/microsoft/TypeScript/issues/15449"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4b718117-310a-8dfd-27c7-277ab2b2553c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90C2:2E3FEE:3222FC6:3F7F61B:6B01CDC3 |
| html-safe-nonce | 693cfad686d91f5fef4c40a6a90ef0312a31187ca3fe7994616949720e777fdd |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEMyOjJFM0ZFRTozMjIyRkM2OjNGN0Y2MUI6NkIwMUNEQzMiLCJ2aXNpdG9yX2lkIjoiNTEzNDcxNzcwNTc4MTM2NjIxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a57df1f4a91c4dfdd82e4c411f83afad1c6e044f410661d90a6bb444d58f0518 |
| hovercard-subject-tag | issue:225156288 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/15449/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f453aa75f95dd8b19cb0775cc0d64836bedfc5f0fb506deb2e5c3ba01ffb6f01/microsoft/TypeScript/issues/15449 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f453aa75f95dd8b19cb0775cc0d64836bedfc5f0fb506deb2e5c3ba01ffb6f01/microsoft/TypeScript/issues/15449 |
| og:image:alt | TypeScript Version: 2.3.1 Code import * as React from 'react'; declare namespace JSX { interface IntrinsicElements { 'heyo': any } } let Something = React.createClass({ render: function() { return ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | iffy |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width