Closed toshi1127 closed 1 year ago
possibly some issue with webpack? From the above I cannot tell any point in the library's code.
Can you try to figure out what the code is where that is?
@aricart Thanks for the reply!
There is an error in nats.ws/esm/nats.js
, but I am unable to figure out the details.
Can you please investigate a little bit, as we have created a repository that reproduces the error?
If I start the server with yarn run dev
and open it in the iOS12 browser, the error occurs.
@toshi1127 thank you for submitting the test setup - the url for the connect was wrong using something like wss://demo.nats.io:8443
does the right thing.
I don't have the IOs simulator, but on ipad,iphone it works.
Perhaps 12.8 (from 2018) is too old. My guess is that it doesn't support ?:
or nullish coalescing ??
. You may want to try and shim that for your application. For your information the phone is using a 15.x ios.
For the record, the device was an iPhone 6s Plus from 2015...
@aricart Thanks for the verification ! The iPhone 6s you verified appears to have a newer iOS version than 12. (as the URL of the site is displayed at the bottom of the screen)
I transpiled nats.ws/esm/nats.js
in Babel with targets: safari12
and it works.
I get a runtime error on iOS12. I think it is caused by the generated JavaScript code compiling to use a newer version, is there any way to resolve this?