Crash on iOS 14 When Initializing SiweMessage Instance
Description
The SIWE (Sign-In with Ethereum) library encounters a crash immediately upon initialization when running on iOS 14. This seems to be related to a syntax error in parser.js.
Steps to Reproduce
- Initialize a SiweMessage instance on an iOS 14 device.
- Observe that the app crashes immediately after load.
Expected Behavior
The SiweMessage instance should load without causing the app to crash.
Actual Behavior
The app crashes and the following error is displayed in the console: (Unhandled Promise Rejection: Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name) (Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name) (Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name) (Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name) (Error: parser.js: initializeCallbacks(): syntax callback 'at' not a rule or udt name)
Possible Solution
N/A
Additional Information
- This issue occurs consistently on iOS 14.
- No such issues have been observed on later versions of iOS or on other platforms.
Environment
- Device: iphone 8 plus
- OS: iOS 14
- Browser: safari
- SIWE Library Version: ^2.1.4
Screenshots
Acknowledgements
I would like to express my gratitude to the development team for creating the SIWE library. Your work significantly contributes to the ecosystem, and I appreciate the effort put into making such tools available and maintained.
@osmanthustonx I'm running into the same issue! Did you manage to figure out what it was?
@chrismin no idea🥲
Same
Hello team?
Any news, workarounds or updates on this topic? I recently encountered the same issue.
UA:
iOS Version: 14.6
iPhone
Mobile Safari 14.1.1
Having the same issue with Android