From ad59d39f55ca15337feed41a66e16cc101e5233f Mon Sep 17 00:00:00 2001 From: maulanasdqn Date: Wed, 21 Jan 2026 18:54:39 +0700 Subject: [PATCH] fix: add react-is dependency for recharts This is a peer dependency required for recharts to work properly in production builds. --- flake.nix | 4 ++-- package-lock.json | 7 +++++++ package.json | 1 + 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index 40eb12f..8a1023a 100644 --- a/flake.nix +++ b/flake.nix @@ -12,7 +12,7 @@ pkgs = import nixpkgs { inherit system; }; # NPM dependencies hash (update with: nix run nixpkgs#prefetch-npm-deps -- package-lock.json) - npmDepsHash = "sha256-J6b+nDIWqL6K9XNVo1SBdIALUPCEgMUAnzqeZyOK6pI="; + npmDepsHash = "sha256-qJdZprh14BOP1oZXZ32A7cJDKh0fKZ1cuppgmOeBt1w="; # Import helpers mkViteApp = import ./nix/mkViteApp.nix { @@ -107,7 +107,7 @@ mkHackathonWithEnv = envVars: import ./nix/mkViteApp.nix { pkgs = final; src = self; - npmDepsHash = "sha256-J6b+nDIWqL6K9XNVo1SBdIALUPCEgMUAnzqeZyOK6pI="; + npmDepsHash = "sha256-qJdZprh14BOP1oZXZ32A7cJDKh0fKZ1cuppgmOeBt1w="; } { name = "hackathon"; buildScript = "hackathon:build"; inherit envVars; }; }; }; diff --git a/package-lock.json b/package-lock.json index ae750c0..ba47a2c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -37,6 +37,7 @@ "react-dom": "^19.2.1", "react-hook-form": "^7.56.4", "react-icons": "^5.5.0", + "react-is": "^19.2.3", "react-router-dom": "^7.3.0", "recharts": "^3.1.2", "sharp": "^0.34.1", @@ -24321,6 +24322,12 @@ "react": "*" } }, + "node_modules/react-is": { + "version": "19.2.3", + "resolved": "https://registry.npmjs.org/react-is/-/react-is-19.2.3.tgz", + "integrity": "sha512-qJNJfu81ByyabuG7hPFEbXqNcWSU3+eVus+KJs+0ncpGfMyYdvSmxiJxbWR65lYi1I+/0HBcliO029gc4F+PnA==", + "license": "MIT" + }, "node_modules/react-redux": { "version": "9.2.0", "resolved": "https://registry.npmjs.org/react-redux/-/react-redux-9.2.0.tgz", diff --git a/package.json b/package.json index 29fd120..5a4209a 100644 --- a/package.json +++ b/package.json @@ -60,6 +60,7 @@ "react-dom": "^19.2.1", "react-hook-form": "^7.56.4", "react-icons": "^5.5.0", + "react-is": "^19.2.3", "react-router-dom": "^7.3.0", "recharts": "^3.1.2", "sharp": "^0.34.1",