From d3ae0dcdfcfd934826dae927b07a573972fbaa49 Mon Sep 17 00:00:00 2001 From: Thomas Vaillant Date: Sun, 15 Dec 2024 17:13:47 +0100 Subject: [PATCH] fix: @types/node version --- packages/web/nextjs/next.config.js | 1 + packages/web/package.json | 2 +- yarn.lock | 15 ++++----------- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/packages/web/nextjs/next.config.js b/packages/web/nextjs/next.config.js index 52c9227..8d70a40 100644 --- a/packages/web/nextjs/next.config.js +++ b/packages/web/nextjs/next.config.js @@ -48,6 +48,7 @@ module.exports = withBundleAnalyzer({ typescript: { // We check typescript errors only during the first build, not during "log4brains build", // for performance purpose and to avoid importing @types/* packages as dependencies + // #NEXTJS-HACK Exception: @types/node is required because of the Next.js verifyTypeScriptSetup() pre-checks ignoreBuildErrors: process.env.LOG4BRAINS_PHASE !== "initial-build" } }); diff --git a/packages/web/package.json b/packages/web/package.json index 9405f4b..342afdd 100644 --- a/packages/web/package.json +++ b/packages/web/package.json @@ -52,7 +52,7 @@ "@material-ui/icons": "^4.9.1", "@material-ui/lab": "^4.0.0-alpha.56", "@next/bundle-analyzer": "^10.0.1", - "@types/node": "^22.10.2", + "@types/node": "^15.0.1", "babel-plugin-import": "^1.13.1", "badge-maker": "^3.3.0", "chalk": "^4.1.0", diff --git a/yarn.lock b/yarn.lock index 0091def..08c09db 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3891,12 +3891,10 @@ resolved "https://registry.yarnpkg.com/@types/node/-/node-14.14.43.tgz#26bcbb0595b305400e8ceaf9a127a7f905ae49c8" integrity sha512-3pwDJjp1PWacPTpH0LcfhgjvurQvrZFBrC6xxjaUEZ7ifUtT32jtjPxEMMblpqd2Mvx+k8haqQJLQxolyGN/cQ== -"@types/node@^22.10.2": - version "22.10.2" - resolved "https://registry.yarnpkg.com/@types/node/-/node-22.10.2.tgz#a485426e6d1fdafc7b0d4c7b24e2c78182ddabb9" - integrity sha512-Xxr6BBRCAOQixvonOye19wnzyDiUtTeqldOOmj3CkeblonbccA12PFwlufvRdrpjXxqnmUaeiU5EOA+7s5diUQ== - dependencies: - undici-types "~6.20.0" +"@types/node@^15.0.1": + version "15.14.9" + resolved "https://registry.yarnpkg.com/@types/node/-/node-15.14.9.tgz#bc43c990c3c9be7281868bbc7b8fdd6e2b57adfa" + integrity sha512-qjd88DrCxupx/kJD5yQgZdcYKZKSIGBVDIBE1/LTGcNm3d2Np/jxojkdePDdfnBHJc5W7vSMpbJ1aB7p/Py69A== "@types/normalize-package-data@^2.4.0": version "2.4.0" @@ -18144,11 +18142,6 @@ underscore@>=1.8.3, underscore@^1.9.1: resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.13.1.tgz#0c1c6bd2df54b6b69f2314066d65b6cde6fcf9d1" integrity sha512-hzSoAVtJF+3ZtiFX0VgfFPHEDRm7Y/QPjGyNo4TVdnDTdft3tr8hEkD25a1jC+TjTuE7tkHGKkhwCgs9dgBB2g== -undici-types@~6.20.0: - version "6.20.0" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-6.20.0.tgz#8171bf22c1f588d1554d55bf204bc624af388433" - integrity sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg== - unfetch@^4.2.0: version "4.2.0" resolved "https://registry.yarnpkg.com/unfetch/-/unfetch-4.2.0.tgz#7e21b0ef7d363d8d9af0fb929a5555f6ef97a3be"