invertase / notifee

⚛️ A feature rich notifications library for React Native.
https://notifee.app
Apache License 2.0
1.88k stars 228 forks source link

Error: Native module not found, js engine: hermes #1091

Closed Kathiresh-JV closed 2 months ago

Kathiresh-JV commented 3 months ago

const socket = new SockJS(URL);

packaget.json: "sockjs-client": "^1.6.1",

I have a piece of code for initializing a STOMP client to handle WebSocket connections in my React Native project. The code works perfectly in Android, but I encounter an issue on iOS. When running the code on iOS with Hermes enabled, I receive the following error:

Error: Native module not found, js engine: hermes

The error specifically appears when the following line is included:

const socket = new SockJS(URL);

If I comment out or remove this line, the error goes away, but the WebSocket connection does not establish either, which breaks the functionality.

Important Note: The code works well on Android, and this issue only arises on iOS.

Could you help me resolve this issue?

mikehardy commented 2 months ago

I cannot help with the information provided, sorry Note that in no instance of any of your quoted messages is "notifee" mentioned Also note that you have not provided notifee version information nor any sort of example etc