Repository navigation
Closed
Description
Hi, I wanted to try out simlin again and test it on a complex (Stella) SD model that includes sensitivity analysis, so I've forked the repo, cloned it (WSL2 Ubuntu 22.04), and ran
yarn install
yarn buildHowever, the build command did not complete successfully. Any suggestions what I should do?
erik@PC-28020:~/dev/simlin$ RUST_BACKTRACE=1 yarn build
yarn run v1.22.22
$ yarn patch && yarn workspaces run build
$ true
> @system-dynamics/xmutil
$ yarn clean && tsc && tsc -p tsconfig.browser.json && cp xmutil.wasm* lib/ && cp xmutil.wasm* lib.browser/ && mv lib/index_main.js lib/index.js && mv lib/index_main.js.map lib/index.js.map && mv lib/index_main.d.ts lib/index.d.ts && rm lib.browser/index_main*
$ rm -rf ./lib ./lib.browser
> @system-dynamics/engine
$ ./build.sh
Finished `release` profile [optimized + debuginfo] target(s) in 0.04s
running wasm-bindgen
thread 'main' panicked at 'remaining data [48]', /home/erik/.cargo/registry/src/github.com-1ecc6299db9ec823/wasm-bindgen-cli-support-0.2.83/src/descriptor.rs:113:9
stack backtrace:
0: rust_begin_unwind
at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/std/src/panicking.rs:575:5
1: core::panicking::panic_fmt
at /rustc/69f9c33d71c871fc16ac445211281c6e7a340943/library/core/src/panicking.rs:65:14
2: wasm_bindgen_cli_support::descriptors::execute
3: wasm_bindgen_cli_support::Bindgen::generate_output
4: wasm_bindgen_cli_support::Bindgen::generate
5: wasm_bindgen::main
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.
error Command failed with exit code 101.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed.
Exit code: 101
Command: /home/erik/.nvm/versions/node/v20.8.0/bin/node
Arguments: /home/erik/.nvm/versions/node/v20.8.0/lib/node_modules/yarn/lib/cli.js run build
Directory: /home/erik/dev/simlin/src/engine
Output:
info Visit https://yarnpkg.com/en/docs/cli/workspaces for documentation about this command.
error Command failed with exit code 101.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.Metadata
Metadata
Assignees
Labels
No labels
Activity
bpowers commentedon May 22, 2024
hi Erik!
This is a bad failure mode/error, but I believe the problem is you need a newer version of wasm-bindgen:
(the version after you install should be 0.2.92)
erikvullings commentedon May 27, 2024
Hi Bobby!
Thanks for your prompt reply and offering a fix: it worked like a charm after adding a -cli, i.e.
And I can build everything again.
Follow-up issue: although I can build it, and start everything just fine, I still cannot login. Via the app GUI, I can create a (dummy) account, but I do not get logged in (I see the login prompt - I can try to login via Google again and select the dummy user, but still no result), and after some time (30sec?), a message appears in the backend console:
In the console in Edge, I see the following errors:
In the firestore console, everything seems to be running fine:
Any suggestions on how to proceed now?
erikvullings commentedon May 29, 2024
Hi Bobby!
I've discovered why I could not log in. As it turns out, I also needed to install the gcloud and the firestore emulator (following this guide), a hefty install of almost 1GB.