I'm currently working on integrating the whiskeysockets/baileys library into a Swift application using a Node.js bridge framework called NodeJsMobile.some issue #112
Savaliyasmit
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently working on integrating the whiskeysockets/baileys library into a Swift application using a Node.js bridge framework called NodeJsMobile. While the library works perfectly fine when running it directly on my MacBook, I'm encountering an issue when running it through the Node.js mobile in the Swift environment.
The specific error I'm getting is:
Cannot find module 'fs/promises'
This error occurs when the library attempts to import the fs/promises module, which was introduced in Node.js version 10.0.0. I suspect that the issue might be related to the Node.js runtime bundled with the NodeJsMobile framework, which could be an older version that doesn't include the fs/promises module or has trouble resolving it.
Beta Was this translation helpful? Give feedback.
All reactions