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": {