fix: add react-is dependency for recharts

This is a peer dependency required for recharts to work properly
in production builds.
This commit is contained in:
maulanasdqn
2026-01-21 18:54:39 +07:00
parent 1283689d84
commit ad59d39f55
3 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -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; };
};
};
+7
View File
@@ -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",
+1
View File
@@ -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",