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

[TypeError: _$$_REQUIRE(_dependencyMap[6], "realm").Object.assign is not a function (it is undefined)]

      How frequently does the bug occur?

      Always

      Description

      I am encountering a TypeError when trying to save a record using Realm in a React Native project. The error message is as follows:
      `TypeError: _$$_REQUIRE(_dependencyMap[6], "realm").Object.assign is not a function (it is undefined)
      `

      Expected Behavior:
      The record should be saved to the Realm database without any errors.

      Actual Behavior:
      A TypeError is thrown, indicating that Object.assign is not a function or is undefined within the Realm library.

      Environment:
      React Native version: 0.73.4
      Realm version: 12.13.1
      Realm React version: 0.10.0
      Platform: Android
      Node version: v20.16.0
      Yarn version: 1.22.22

      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
      [TypeError: _$$_REQUIRE(_dependencyMap[6], "realm").Object.assign is not a function (it is undefined)]
      

      Can you reproduce the bug?

      No

      Reproduction Steps

      No response

      Version

      12.13.1

      What services are you using?

      Local Database only

      Are you using encryption?

      No

      Platform OS and version(s)

      Android API 31

      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:
            2 Start watching this issue

              Created:
              Updated: