Title: 5.5.0 regression - importHelpers do not work with moduleResolution: bundler · Issue #58325 · microsoft/TypeScript · GitHub
Open Graph Title: 5.5.0 regression - importHelpers do not work with moduleResolution: bundler · Issue #58325 · microsoft/TypeScript
X Title: 5.5.0 regression - importHelpers do not work with moduleResolution: bundler · Issue #58325 · microsoft/TypeScript
Description: 🔎 Search Terms importHelpers This syntax requires an imported helper but module 'tslib' cannot be found. TS2354 🕗 Version & Regression Information fails on 5.5.0-beta This changed between versions 5.4.5 and 5.5.0 reproduces on 5.5.0-dev....
Open Graph Description: 🔎 Search Terms importHelpers This syntax requires an imported helper but module 'tslib' cannot be found. TS2354 🕗 Version & Regression Information fails on 5.5.0-beta This changed between versions ...
X Description: 🔎 Search Terms importHelpers This syntax requires an imported helper but module 'tslib' cannot be found. TS2354 🕗 Version & Regression Information fails on 5.5.0-beta This changed betwe...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/58325
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"5.5.0 regression - importHelpers do not work with moduleResolution: bundler","articleBody":"### 🔎 Search Terms\r\n\r\nimportHelpers\r\nThis syntax requires an imported helper but module 'tslib' cannot be found.\r\nTS2354\r\n\r\n### 🕗 Version \u0026 Regression Information\r\n\r\nfails on 5.5.0-beta\r\n\r\n- This changed between versions 5.4.5 and 5.5.0\r\n\r\nreproduces on 5.5.0-dev.20240425\r\ncan't be reproduced on playground as it seems to ignore importHelpers\r\n\r\n### ⏯ Playground Link\r\n\r\nhttps://github.com/Knagis/importHelpers-5.5.0\r\n\r\n### 💻 Code\r\n\r\ntsconfig.json:\r\n\r\n```json\r\n{\r\n \"compilerOptions\": {\r\n \"importHelpers\": true,\r\n \"target\": \"es2017\",\r\n \"module\": \"ESNext\",\r\n \"moduleResolution\": \"Bundler\"\r\n },\r\n \"include\": [\r\n \"./src/**/*\",\r\n ],\r\n}\r\n```\r\n\r\nsrc/index.ts\r\n```ts\r\nexport function foo(args: any) {\r\n const { bar, ...extraArgs } = args;\r\n return extraArgs;\r\n}\r\n```\r\n\r\n\r\n### 🙁 Actual behavior\r\n\r\n```\r\nnode_modules\\.bin\\tsc -b\r\nsrc/index.ts:2:21 - error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.\r\n\r\n2 const { bar, ...extraArgs } = args;\r\n ~~~~~~~~~\r\n\r\n\r\nFound 1 error.\r\n```\r\n\r\n### 🙂 Expected behavior\r\n\r\nCode compiles without errors.\r\n\r\n### Additional information about the issue\r\n\r\n_No response_","author":{"url":"https://github.com/Knagis","@type":"Person","name":"Knagis"},"datePublished":"2024-04-26T07:18:30.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/58325/TypeScript/issues/58325"}
| 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:46b5b86c-cdf6-76e7-06d7-5ee70bcf7a98 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A654:253796:2DD70B2:3D9184E:6A5DB978 |
| html-safe-nonce | 29068e090c8522a6dff36efe1b6354b7517236721e8fc2285a018625bd562b15 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNjU0OjI1Mzc5NjoyREQ3MEIyOjNEOTE4NEU6NkE1REI5NzgiLCJ2aXNpdG9yX2lkIjoiODEwMzkxOTc5NjgzMDk3NjM3NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 62272ab63513b5b04ce68de75d551df860bb1f7ad83398b7eeec60052c3bb67f |
| hovercard-subject-tag | issue:2265123830 |
| 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/58325/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e35f926f686ed646aabddfc09e7e96c66ee93c7614f7342d42e0fd56fe9ade1a/microsoft/TypeScript/issues/58325 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e35f926f686ed646aabddfc09e7e96c66ee93c7614f7342d42e0fd56fe9ade1a/microsoft/TypeScript/issues/58325 |
| og:image:alt | 🔎 Search Terms importHelpers This syntax requires an imported helper but module 'tslib' cannot be found. TS2354 🕗 Version & Regression Information fails on 5.5.0-beta This changed between versions ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Knagis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width