diff --git a/web/package-lock.json b/web/package-lock.json index aef5ecc901..9b8e3eee82 100644 --- a/web/package-lock.json +++ b/web/package-lock.json @@ -40,6 +40,8 @@ "@testing-library/react": "^16.0.1", "@testing-library/user-event": "^14.5.1", "@types/jest": "^29.5.12", + "@types/react": "^18.3.8", + "@types/react-dom": "^18.3.0", "@types/webpack-env": "^1.18.5", "@typescript-eslint/eslint-plugin": "^8.6.0", "@typescript-eslint/parser": "^8.6.0", @@ -5205,9 +5207,7 @@ "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz", "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==", "dev": true, - "license": "MIT", - "optional": true, - "peer": true + "license": "MIT" }, "node_modules/@types/qs": { "version": "6.9.16", @@ -5224,13 +5224,11 @@ "license": "MIT" }, "node_modules/@types/react": { - "version": "18.3.5", - "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.5.tgz", - "integrity": "sha512-WeqMfGJLGuLCqHGYRGHxnKrXcTitc6L/nBUWfWPcTarG3t9PsquqUMuVeXZeca+mglY4Vo5GZjCi0A3Or2lnxA==", + "version": "18.3.8", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.8.tgz", + "integrity": "sha512-syBUrW3/XpnW4WJ41Pft+I+aPoDVbrBVQGEnbD7NijDGlVC+8gV/XKRY+7vMDlfPpbwYt0l1vd/Sj8bJGMbs9Q==", "dev": true, "license": "MIT", - "optional": true, - "peer": true, "dependencies": { "@types/prop-types": "*", "csstype": "^3.0.2" @@ -5242,8 +5240,6 @@ "integrity": "sha512-EhwApuTmMBmXuFOikhQLIBUn6uFg81SwLMOAUgodJF14SOBOCMdU04gDoYi0WOJJHD144TL32z4yDqCW3dnkQg==", "dev": true, "license": "MIT", - "optional": true, - "peer": true, "dependencies": { "@types/react": "*" } @@ -8466,9 +8462,7 @@ "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==", "dev": true, - "license": "MIT", - "optional": true, - "peer": true + "license": "MIT" }, "node_modules/data-urls": { "version": "4.0.0", diff --git a/web/package.json b/web/package.json index 179a98883e..7a85035007 100644 --- a/web/package.json +++ b/web/package.json @@ -44,6 +44,8 @@ "@testing-library/react": "^16.0.1", "@testing-library/user-event": "^14.5.1", "@types/jest": "^29.5.12", + "@types/react": "^18.3.8", + "@types/react-dom": "^18.3.0", "@types/webpack-env": "^1.18.5", "@typescript-eslint/eslint-plugin": "^8.6.0", "@typescript-eslint/parser": "^8.6.0", diff --git a/web/webpack.config.js b/web/webpack.config.js index f35810fc03..f7df3e4c7a 100644 --- a/web/webpack.config.js +++ b/web/webpack.config.js @@ -173,8 +173,7 @@ module.exports = { getCustomTransformers: () => ({ before: [development && ReactRefreshTypeScript()].filter(Boolean), }), - // FIXME: temporarily disable the type checking. - transpileOnly: true, + transpileOnly: development, }, }, ],