Skip to content

Commit b7bfc76

Browse files
replace bun with node (#51)
* replace bun with node * chore: add bun back to as pm * update faq with trace trap --------- Co-authored-by: Aashutosh Rathi <[email protected]>
1 parent b65cdc6 commit b7bfc76

File tree

3 files changed

+22
-18
lines changed

3 files changed

+22
-18
lines changed

docs/pages/build/faq.mdx

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,17 @@ If you send in multiple blocks from your Micro-rollup, they will be ordered and
1515
Therefore, subsequent blocks will take more time to get C3A/C3B confirmation.
1616
It takes few minutes roughly how much time it takes to confirm data publication of the batch on a data availability layer.
1717
After this, depending on Sepolia's network congestion, it may take 10-30s to submit the batch to your app's inbox and receive C3B confirmation.
18+
:::
19+
20+
:::details[Getting `trace trap` when using Bun?]
21+
If you are getting `trace trap` error when using Bun. This is a known issue with Bun and SQLite, which got live with `v1.1.27` of bun. [More details here](https://discord.com/channels/876711213126520882/1282959007589601280/1283307017158791222).
22+
23+
Moving forward we recommend using `tsx` over `bun` for development.
24+
If you want to continue using `bun`, you can downgrade to `v1.1.26` by running:
25+
26+
```bash
27+
curl -fsSl https://bun.sh/install | bash -s "bun-v1.1.26"
28+
```
29+
:::
1830

19-
If you have any more questions, please reach out to us on our [Discord](https://discord.gg/4wChdkN2) server.
31+
If you have any more questions, please reach out to us on our [Discord](https://discord.stackrlabs.xyz/) server.

docs/pages/build/zero-to-one/getting-started.mdx

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,11 @@ Incase you don't already have it, you can follow the instructions at [here](http
1313
:::code-group
1414

1515
```bash [Linux / MacOS]
16-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash nvm install lts
16+
# Install Node Version Manager (nvm)
17+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
18+
19+
# Install NodeJS and npm (LTS versions)
20+
nvm install --lts
1721
```
1822

1923
```bash [Windows]
@@ -28,25 +32,13 @@ choco install nodejs --version="lts"
2832

2933
:::
3034

31-
### Bun
32-
33-
We utilize some of the capabilities of Bun.
34-
35-
:::info
36-
Make sure you have the latest version of Bun installed (i.e >= `1.0.15`)
37-
:::
38-
39-
```sh copy
40-
curl -fsSL https://bun.sh/install | bash
41-
```
42-
43-
More information regarding Bun can be found at https://bun.sh
44-
4535
### Stackr CLI
4636

37+
The Stackr CLI helps you to create, register and deploy your micro-rollups.
38+
4739
:::warning
4840

49-
#### Remove previously installed Stackr CLI
41+
##### Remove previously installed Stackr CLI
5042

5143
If you have previously installed the Stackr CLI binary from 2023, you need to uninstall it first.
5244

@@ -56,7 +48,6 @@ rm -rf ~/.stackr
5648

5749
:::
5850

59-
CLI helps you to create, register and deploy your micro-rollups.
6051
Either you can install it globally using
6152

6253
:::code-group

docs/pages/build/zero-to-one/run-it.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ It's recommended to use this mode while development and for experimentation. Ena
8181
npm start
8282
```
8383
```bash [bun]
84+
# Note that `bun` is just used to run script in package.json here, start command still points to `tsx`
8485
bun start
8586
```
8687

0 commit comments

Comments
 (0)