Skip to content

Commit

Permalink
chore: fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
pietro-maximoff committed Nov 14, 2024
1 parent 5d3eeba commit 8a93575
Show file tree
Hide file tree
Showing 3 changed files with 355 additions and 22 deletions.
6 changes: 6 additions & 0 deletions apps/frontend/craco.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@ module.exports = {
/Configure maximumFileSizeToCacheInBytes to change this limit/,
];
config.resolve.fallback = {
fs: false, // Not available in the browser
net: false, // Not available in the browser
tls: false, // Not available in the browser
http: require.resolve('stream-http'),
https: require.resolve('https-browserify'),
os: require.resolve('os-browserify/browser'),
stream: require.resolve('stream-browserify'),
buffer: require.resolve('buffer'),
crypto: require.resolve('crypto-browserify'),
Expand Down
9 changes: 9 additions & 0 deletions apps/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,24 @@
"@sovryn/ui": "*",
"@sovryn/utils": "0.0.2",
"@uniswap/permit2-sdk": "1.2.0",
"assert-browserify": "^2.0.0",
"bitcoin-address-validation": "2.2.1",
"buffer": "^6.0.3",
"chart.js": "4.1.1",
"classnames": "2.3.2",
"date-fns": "2.30.0",
"dayjs": "1.11.7",
"env-cmd": "10.1.0",
"ethers": "5.7.1",
"ethers-eip712": "0.2.0",
"fs": "^0.0.1-security",
"graphql": "16.6.0",
"https-browserify": "^1.0.0",
"i18next": "22.0.4",
"i18next-browser-languagedetector": "7.0.0",
"immer": "^10.0.3",
"nanoid": "4.0.0",
"os-browserify": "^0.3.0",
"qrcode.react": "3.1.0",
"react": "18.2.0",
"react-chartjs-2": "5.1.0",
Expand All @@ -61,7 +66,11 @@
"sanitize-html": "2.11.0",
"socket.io-client": "4.5.4",
"storage-factory": "^0.2.1",
"stream-browserify": "^3.0.0",
"stream-http": "^3.2.0",
"utf8": "^3.0.0",
"util": "^0.12.5",
"web3": "^4.15.0",
"zustand": "^4.5.1"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 8a93575

Please sign in to comment.