Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue building for ARM/Linux #6719

Closed
sonofjavascript opened this issue Jun 12, 2024 · 4 comments
Closed

Issue building for ARM/Linux #6719

sonofjavascript opened this issue Jun 12, 2024 · 4 comments

Comments

@sonofjavascript
Copy link

How frequently does the bug occur?

Always

Description

I am following these steps https://github.com/realm/realm-js/blob/main/contrib/building.md#building-for-nodejs.

While running npm run bundle --workspace realm throws an error due to bundle script does not exist in realm package.

Could you help on this please?

Stacktrace & log output

npm ERR! Lifecycle script `bundle` failed with error: 
npm ERR! Error: Missing script: "bundle"

To see a list of scripts, run:
  npm run 
npm ERR!   in workspace: [email protected] 
npm ERR!   at location: /realm-js/packages/realm

Can you reproduce the bug?

Always

Reproduction Steps

export REALM_USE_SYSTEM_OPENSSL=1
git clone https://github.com/realm/realm-js
cd realm-js
git submodule update —-init —-recursive
npm install --ignore-scripts
npm run build:node --workspace realm
npm run bundle --workspace realm

Version

12.9.0

What services are you using?

-- select --

Are you using encryption?

Yes

Platform OS and version(s)

debian

Build environment

No response

Cocoapods version

No response

Copy link

sync-by-unito bot commented Jun 12, 2024

➤ PM Bot commented:

Jira ticket: RJS-2837

@kraenhansen
Copy link
Member

kraenhansen commented Jun 12, 2024

We've renamed this to "build:ts" since we're not longer bundling the SDK:

npm run build:ts --workspace realm

Thanks for reaching out! I'm including an update for these docs via 9d556af in #6650.

@sonofjavascript
Copy link
Author

sonofjavascript commented Jun 14, 2024

@kraenhansen we've managed to build within a specific architecture and build steps seems to complete successfully (realm.node is created).

Next documentation step is: run npm install realm-js-path. We run it and a symlink is setup. After it, we start the application and seems the some dependencies are missing.

Error: Cannot find module '@realm/fetch'

Which step are we missing? Could you help on that please?

@kraenhansen
Copy link
Member

Which step are we missing? Could you help on that please?

I suggest you do an npm pack in packages/realm and use that in your app, in which case the @realm/fetch dependency will be downloaded from NPM 👍

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 14, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants