Hi, I’m trying to clone the Temporal SDK Typescript repository and build it on my local machine so I can then host the package on a cdn, but been running into some issues. I’m on a M1 Mac, and when trying to install the dependencies I keep running into the same issue:
npm ERR! code 1
npm ERR! path /Users/pedrocruz/Projects/sandbox/sdk-typescript/packages/core-bridge
npm ERR! command failed
npm ERR! command sh -c -- node ./scripts/build.js
npm ERR! Compiling bridge { target: 'aarch64-apple-darwin', buildRelease: false }
npm ERR! Running /Users/pedrocruz/Projects/sandbox/sdk-typescript/node_modules/.bin/cargo-cp-artifact [
npm ERR! '--artifact',
npm ERR! 'cdylib',
npm ERR! 'temporal_sdk_typescript_bridge',
npm ERR! 'releases/aarch64-apple-darwin/index.node',
npm ERR! '--',
npm ERR! 'cargo',
npm ERR! 'build',
npm ERR! '--message-format=json-render-diagnostics',
npm ERR! '--target',
npm ERR! 'aarch64-apple-darwin'
npm ERR! ]
npm ERR! No prebuilt module found at /Users/pedrocruz/Projects/sandbox/sdk-typescript/packages/core-bridge/releases/aarch64-apple-darwin/index.node
npm ERR! Updating crates.io index
npm ERR! error: failed to get `temporal-client` as a dependency of package `temporal-sdk-typescript-bridge v0.1.0 (/Users/pedrocruz/Projects/sandbox/sdk-typescript/packages/core-bridge)`
npm ERR!
npm ERR! Caused by:
npm ERR! failed to load source for dependency `temporal-client`
npm ERR!
npm ERR! Caused by:
npm ERR! Unable to update /Users/pedrocruz/Projects/sandbox/sdk-typescript/packages/core-bridge/sdk-core/client
npm ERR!
npm ERR! Caused by:
npm ERR! failed to read `/Users/pedrocruz/Projects/sandbox/sdk-typescript/packages/core-bridge/sdk-core/client/Cargo.toml`
npm ERR!
npm ERR! Caused by:
npm ERR! No such file or directory (os error 2)
npm ERR! Did not copy "cdylib:temporal_sdk_typescript_bridge"
npm ERR! /Users/pedrocruz/Projects/sandbox/sdk-typescript/packages/core-bridge/scripts/build.js:89
npm ERR! throw new Error(`Failed to build${target ? ' for ' + target : ''}`);
npm ERR! ^
npm ERR!
npm ERR! Error: Failed to build for aarch64-apple-darwin
npm ERR! at compile (/Users/pedrocruz/Projects/sandbox/sdk-typescript/packages/core-bridge/scripts/build.js:89:11)
npm ERR! at Object.<anonymous> (/Users/pedrocruz/Projects/sandbox/sdk-typescript/packages/core-bridge/scripts/build.js:106:9)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1198:14)
npm ERR! at Object.Module._extensions..js (node:internal/modules/cjs/loader:1252:10)
npm ERR! at Module.load (node:internal/modules/cjs/loader:1076:32)
npm ERR! at Function.Module._load (node:internal/modules/cjs/loader:911:12)
npm ERR! at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)
npm ERR! at node:internal/main/run_main_module:22:47
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/pedrocruz/.npm/_logs/2023-06-22T17_55_49_244Z-debug-0.log
Is there something I’m missing?