Uniswap / examples

107 stars 141 forks source link

Example does not work! #78

Open ElShapovalov opened 2 months ago

ElShapovalov commented 2 months ago

I try to run Uniswap example and always get error in browser console: Uncaught ReferenceError: Browser is not defined at Va (encode.js:49:1)

Can anybody help me?

cypruspound commented 2 months ago

I have the same issue !

Initially i have installed @uniswap/widget to check it out but later on i changed my mind i decided not to work with it so i removed it ... i changed webpack 5 to 4 version and then again went back to 5 because i had several issues which i have resolved however i still have the same error ... I saw that another package that I am using [smart-order-router] also depends on "brotli": "^1.3.3",
unfortunately i cannot remove smart-order-router .

the error in brotli is in this line : exports.compress = require('./compress');

robertxd30 commented 2 months ago

I have same issue

upendradhamaladev commented 2 months ago

I have got the same issue too. Stuck on this since a week. I tried different solutions but none of them worked.

image