Repository navigation
Update dependency typescript to v7 - #876
renovate[bot] wants to merge 1 commit into
Conversation
|
To increment version on merge, please add one of |
6efd877 to
ca5ae05
Compare
e4d0c21 to
088db2d
Compare
ee9c275 to
6611842
Compare
|
This is apparently not supported in typescript-eslint and not expected to be until typescript 7.1 |
dcc9103 to
1be64f9
Compare
95692b3 to
b82021d
Compare
b82021d to
4b70c86
Compare
| "storybook-react-rsbuild": "^3.6.0", | ||
| "style-dictionary": "^5.0.0", | ||
| "typescript": "^6.0.3", | ||
| "typescript": "^7.0.0", |
There was a problem hiding this comment.
🔴 Type-aware linting loses the compiler API
With TypeScript 7 installed, yarn lint fails because typescript-eslint calls the absent ts.createSourceFile API. The package root exports version metadata instead of the compiler API that the configured parser requires.
Learn more
The TypeScript 7 package root exports only version metadata. The configured typescript-eslint parser imports that root and calls compiler APIs such as ts.createSourceFile, so the mandatory lint stage in build-and-test cannot parse source files. Storybook's docgen integration also depends on compiler APIs from the same root, so it cannot produce TypeScript prop documentation.
Example: After installing the locked dependencies, run yarn lint on an ordinary .ts source file. The parser calls ts.createSourceFile, but the root TypeScript import has no such function; lint terminates before checking the file.
Recommended fix: Keep a compatible TypeScript compiler API available to typescript-eslint and Storybook, or upgrade both integrations to versions that support TypeScript 7's new API. Run yarn lint and yarn build with a clean install.
Was this helpful? React with 👍 or 👎 to provide feedback.
2260d69 to
1fafcc3
Compare
1fafcc3 to
3c9eb4f
Compare
This PR contains the following updates:
^6.0.3→^7.0.0Warning
Some dependencies could not be looked up. Check the Dependency Dashboard for more information.
Release Notes
microsoft/TypeScript (typescript)
v7.0.2: TypeScript 7.0.2Compare Source
https://devblogs.microsoft.com/typescript/announcing-typescript-7-0/
This tag was originally released at: https://github.com/microsoft/typescript-go/releases/tag/typescript%2Fv7.0.2
Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.