ApiPromise.create({ provider: wsProvider }) function causing react webpage to not load on safari browsers #6085
Labels
Help Wanted
Tasks open for external contributions, suitable for independent or collaborative work.
Im building a wallet using CRA (react-js) that lets users see and interact with their DOT and KSM cryptocurrencies (among others) and so far everything works. However, my react webpage fails to load on Safari browsers and instead shows a blank white page. Ive narrowed it down to this specific function i use in my code that initializes a connection to a provider to load the balance data:
Now i read somewhere that safari is pretty sensitive to errors so i looked at its logs in the safari console and found something like this:
when i expand the error, it shows me the error is in this specific line in a bundle.js file:
My webapp is working fine on Chrome, Firefox and the other browsers but failing on all safari browsers (both MacOS and iOS). The issue popped up a few weeks ago and since this is a library issue, there isn't much i can do other than disable support for DOT and KSM until the issue is resolved.
Safari: Version 15.5 (17613.2.7.1.8), NPM version: 9.6.7, Node version: 18.17.1 and the polkadot.js dependency version in my package.json:
and my import statements look like this:
The text was updated successfully, but these errors were encountered: