From 2ddfb3a7955cc5437d61b2afae7e501c4b54d469 Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Tue, 11 Jan 2022 09:45:15 +0000 Subject: [PATCH] ignore that weird electron dependency --- next.config.js | 6 ++++++ package-lock.json | 11 +++++++---- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/next.config.js b/next.config.js index b0b002d4e..2e373516f 100644 --- a/next.config.js +++ b/next.config.js @@ -19,6 +19,12 @@ module.exports = (phase, { defaultConfig }) => { ) // for old ocean.js, most likely can be removed later on + config.plugins.push( + new options.webpack.IgnorePlugin({ + resourceRegExp: /^electron$/ + }) + ) + config.resolve.fallback = { fs: false, crypto: false, diff --git a/package-lock.json b/package-lock.json index 57b0726e1..4e02e3c6e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -108,6 +108,7 @@ } }, "../ocean.js": { + "name": "@oceanprotocol/lib", "version": "1.0.0-alpha", "license": "Apache-2.0", "dependencies": { @@ -116,6 +117,7 @@ "cross-fetch": "^3.1.4", "crypto-js": "^4.0.0", "decimal.js": "^10.2.1", + "ethereumjs-util": "^7.1.3", "fs": "0.0.1-security", "lzma": "^2.3.2", "node-abort-controller": "^2.0.0", @@ -123,8 +125,8 @@ "underscore": "^1.13.1", "uuid": "^8.3.2", "web3": ">=1.3.5", - "web3-core": "^1.5.3", - "web3-eth-contract": "^1.5.2" + "web3-core": "^1.6.1", + "web3-eth-contract": "^1.6.1" }, "devDependencies": { "@truffle/hdwallet-provider": "^1.5.1", @@ -29329,6 +29331,7 @@ "eslint-config-oceanprotocol": "^1.5.0", "eslint-config-prettier": "^8.3.0", "eslint-plugin-prettier": "^4.0.0", + "ethereumjs-util": "^7.1.3", "fs": "0.0.1-security", "lzma": "^2.3.2", "microbundle": "^0.14.0", @@ -29348,8 +29351,8 @@ "underscore": "^1.13.1", "uuid": "^8.3.2", "web3": ">=1.3.5", - "web3-core": "^1.5.3", - "web3-eth-contract": "^1.5.2" + "web3-core": "^1.6.1", + "web3-eth-contract": "^1.6.1" } }, "@oceanprotocol/typographies": {