-
Type: Bug
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
4 - L (<= 1 quarter)
-
6168
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