From 9edea96e01473eab7a7dca3f2d81a7ff1c4dd0a2 Mon Sep 17 00:00:00 2001 From: Patryk Karpinski Date: Thu, 9 Mar 2023 19:23:45 +0100 Subject: [PATCH] Add d3-drag fixing next.js error #1 When I tried to use this library with next.js 13+ i got the following error: ./node_modules/react-d3-graph/lib/components/graph/Graph.js:10:0 Module not found: Can't resolve 'd3-drag' Manually installing this dependency inside the package (node_modules/react-d3-graph) fixes it. I'm not sure wheter it is the best solution. More details in the issue: danielcaldas#556 --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index a08ebcae..0ac2bb27 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,7 @@ }, "peerDependencies": { "d3": "^5.5.0", + "d3-drag": "^3.0.0", "react": "^16.4.1" }, "devDependencies": {