From 30d0ada22b02f9c0c555553e5ab81aec41c71e78 Mon Sep 17 00:00:00 2001 From: Leo McArdle Date: Thu, 11 May 2023 11:57:10 +0000 Subject: [PATCH] fix(dev): TypeScript errors when running `yarn dev` since updating to TypeScript 5 we've had errors like: `TypeError: Cannot set property mark of # which has only a getter` updating fork-ts-checker-webpack-plugin fixes the problem --- package.json | 3 ++- yarn.lock | 8 ++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3723497a81b3..e46e96e23925 100644 --- a/package.json +++ b/package.json @@ -54,7 +54,8 @@ "watch:ssr": "cd ssr && webpack --mode=production --watch" }, "resolutions": { - "lodash": ">=4.17.15" + "lodash": ">=4.17.15", + "react-dev-utils/fork-ts-checker-webpack-plugin": "^6.5.3" }, "dependencies": { "@caporal/core": "^2.0.2", diff --git a/yarn.lock b/yarn.lock index efe97d32d520..38dccd8d0b79 100644 --- a/yarn.lock +++ b/yarn.lock @@ -6273,10 +6273,10 @@ foreman@^3.0.1: mustache "^2.2.1" shell-quote "^1.6.1" -fork-ts-checker-webpack-plugin@^6.5.0: - version "6.5.2" - resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.2.tgz#4f67183f2f9eb8ba7df7177ce3cf3e75cdafb340" - integrity sha512-m5cUmF30xkZ7h4tWUgTAcEaKmUW7tfyUyTqNNOz7OxWJ0v1VWKTcOvH8FWHUwSjlW/356Ijc9vi3XfcPstpQKA== +fork-ts-checker-webpack-plugin@^6.5.0, fork-ts-checker-webpack-plugin@^6.5.3: + version "6.5.3" + resolved "https://registry.yarnpkg.com/fork-ts-checker-webpack-plugin/-/fork-ts-checker-webpack-plugin-6.5.3.tgz#eda2eff6e22476a2688d10661688c47f611b37f3" + integrity sha512-SbH/l9ikmMWycd5puHJKTkZJKddF4iRLyW3DeZ08HTI7NGyLS38MXd/KGgeWumQO7YNQbW2u/NtPT2YowbPaGQ== dependencies: "@babel/code-frame" "^7.8.3" "@types/json-schema" "^7.0.5"