Realm Functions importing dependencies: Cannot find module 'module-name'

Update: I followed the exactly how Andrew wrote them, and that seemed to work. This was beyond frustrating – I have a full page of notes I tried that didn’t work.

For future people, the difference between this “working” and not is either:

  • something internal on their side with the tar.gz
  • installing packages with npm (rather than zipping them manually) includes a handful of @ folders (ex. @babel) that might need to be included. I did an npm install --only=prod version.
1 Like