Uploaded image for project: 'Realm JavaScript SDK'
  1. Realm JavaScript SDK
  2. RJS-2581

Realm not working with Bunjs

      How frequently does the bug occur?

      Always

      Description

      When I try to import realm in a js file and run the script with Bunjs, I get the following error
      error: Cannot find module "realm/realm-constants.json" from "/home/zafaransari/projects/bun/realmdb/node_modules/realm/dist/bundle.node.js"

      Stacktrace & log output

      Unable to find source-code formatter for language: shell. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
      error: Cannot find module "realm/realm-constants.json" from "/home/zafaransari/projects/bun/realmdb/node_modules/realm/dist/bundle.node.js"
      

      Can you reproduce the bug?

      Always

      Reproduction Steps

      install realm using command
      bun add realm
      import realm in a js file
      Run the js file with the command
      bun run index,js

      Version

      12.2.0

      What services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      Ubuntu 22.04.3 LTS

      Build environment

      Which debugger for React Native: ..

      Cocoapods version

      No response

            Assignee:
            Unassigned Unassigned
            Reporter:
            unitosyncbot Unito Sync Bot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: