-
-
Notifications
You must be signed in to change notification settings - Fork 243
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not play well with TypeScript 5 - Various TypeErrors #797
Comments
The The |
I see the Any chance of updating the I hacked it locally (mostly commented out logging stuff) and was able to get things to work, but I'm not sure what I actually disabled/lost by doing that. |
The typescript performance stuff is not important - it's only for debugging purposes. I don't have time this week to fix that, feel free to create a PR if you have a fix :) |
@piotr-oles I opened #803 |
🎉 This issue has been resolved in version 6.5.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hi @piotr-oles and @eamodio 👋🏼 thanks for fixing it on the 6.x.x branch as well! Since there isn't a good alternative for ESLint yet, we are stuck with 6.x version. It's great to be able to upgrade TypeScript to the latest with your fix! 🙇🏼 |
- warning is ``` TypeError: Cannot set property mark of #<Object> which has only a getter TypeError: Cannot set property mark of #<Object> which has only a getter at Object.connectTypeScriptPerformance ``` - fix offending package version - see TypeStrong/fork-ts-checker-webpack-plugin#797
) - warning is ``` TypeError: Cannot set property mark of #<Object> which has only a getter TypeError: Cannot set property mark of #<Object> which has only a getter at Object.connectTypeScriptPerformance ``` - fix offending package version - see TypeStrong/fork-ts-checker-webpack-plugin#797
This commit also ugrades fork-ts-checker-webpack-plugin which was causing another build error (see TypeStrong/fork-ts-checker-webpack-plugin#797). And it also uprade the browserlist db.
There is an issue in create-react-app, as old version of fork-ts-checker-webpack-plugin is used. TypeStrong/fork-ts-checker-webpack-plugin#797. So, have to add resolution to fix ithttps://github.com/facebook/create-react-app/issues/13099#issuecomment-1517396660
Storybook uses a version of the plugin which does not play well with TS 5.0. We can override the version as explained here: TypeStrong/fork-ts-checker-webpack-plugin#797
This is halfway between a bug and a feature request, because I know TS 5 isn't supported yet, but figure it will be soon.
Current behavior
In a create-react-scripts application using TypeScript v5, the following messages occur at compile time:
and
Expected behavior
No TypeError upon compilation.
Steps to reproduce the issue
Build a create-react-app application with the typescript template
In
package.json
: Set the version of the typescript package to5.0.0-beta
In
package.json
: Add the following overrides section:Run
npm install --legacy-peer-deps
Run
npm run build
Environment
The text was updated successfully, but these errors were encountered: