From 7a0b63d772c47e6539473f5ff00a251bda8af45b Mon Sep 17 00:00:00 2001 From: Victor Maia Date: Wed, 26 Jul 2017 18:56:02 -0300 Subject: [PATCH] Do not import node libs on browser. Fixes #923 I'm assuming the problem happened when web3 was imported with require, and then webpack was used on it. If so, this was probably caused because I was incorrectly importing Node.js related libs on the browser release. This fixes it by correctly using the browser field on package.json. --- packages/web3-bzz/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/web3-bzz/package.json b/packages/web3-bzz/package.json index 26c1d5192cd..1409e0d09d4 100644 --- a/packages/web3-bzz/package.json +++ b/packages/web3-bzz/package.json @@ -6,7 +6,7 @@ "license": "LGPL-3.0", "main": "src/index.js", "dependencies": { - "swarm-js": "0.1.30", + "swarm-js": "0.1.33", "underscore": "1.8.3" } }