-
Notifications
You must be signed in to change notification settings - Fork 13
feat: added monorepo build error handling #810
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -43,6 +43,22 @@ pnpm codegen | |
|
|
||
| > **Important:** Always run `pnpm codegen` immediately after cloning an indexer repository using Envio. | ||
|
|
||
| ### Using Envio inside a monorepo | ||
|
|
||
| **Problem:** Your indexer lives inside a larger monorepo and you see `Cannot find module` or missing-generated-code errors even after running `pnpm codegen`. | ||
|
|
||
| **Cause:** `pnpm-workspace.yaml` doesn't include both your indexer root and its generated output directory. | ||
|
|
||
| **Solution:** Add both `<envio-indexer>` and `<envio-indexer>/generated` to the `packages` list in `pnpm-workspace.yaml`, for example: | ||
|
|
||
| ```yaml | ||
| packages: | ||
| - "apps/*" | ||
| - "packages/*" | ||
| - "envio-indexer" | ||
| - "envio-indexer/generated" | ||
| ``` | ||
|
Comment on lines
+50
to
+60
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: Yes—pnpm only treats directories that both (a) match How to handle generated directories without a
If the generated directory is intended to be a workspace package (i.e., you want pnpm to link it / run recursive commands in it), then it needs its own Sources: Citations:
The documented pnpm only recognizes directories as workspace packages if they both match For generated directories, use one of these approaches instead:
🤖 Prompt for AI Agents |
||
|
|
||
| ### Smart contract updated after the initial codegen | ||
|
|
||
| **Problem:** Changes to smart contracts aren't reflected in your blockchain indexer. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -55,6 +55,7 @@ If you are a network operator or user and would like improved service support or | |
| | Cyber | 7560 | https://cyber.hypersync.xyz or https://7560.hypersync.xyz | https://cyber.rpc.hypersync.xyz or https://7560.rpc.hypersync.xyz | 🪨 | | ||
| | Eth Traces | 1 | https://eth-traces.hypersync.xyz or https://1-traces.hypersync.xyz | https://eth-traces.rpc.hypersync.xyz or https://1-traces.rpc.hypersync.xyz | 🏅 | | ||
| | Ethereum Mainnet | 1 | https://eth.hypersync.xyz or https://1.hypersync.xyz | https://eth.rpc.hypersync.xyz or https://1.rpc.hypersync.xyz | 🏅 | | ||
| | Fantom | 250 | https://fantom.hypersync.xyz or https://250.hypersync.xyz | https://fantom.rpc.hypersync.xyz or https://250.rpc.hypersync.xyz | 🪨 | | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Add the matching Fantom Testnet row. Line 58 adds Fantom mainnet, but the canonical 🤖 Prompt for AI Agents |
||
| | Flare | 14 | https://flare.hypersync.xyz or https://14.hypersync.xyz | https://flare.rpc.hypersync.xyz or https://14.rpc.hypersync.xyz | 🪨 | | ||
| | Fraxtal | 252 | https://fraxtal.hypersync.xyz or https://252.hypersync.xyz | https://fraxtal.rpc.hypersync.xyz or https://252.rpc.hypersync.xyz | 🪨 | | ||
| | Fuji | 43113 | https://fuji.hypersync.xyz or https://43113.hypersync.xyz | https://fuji.rpc.hypersync.xyz or https://43113.rpc.hypersync.xyz | 🎒 | | ||
|
|
@@ -64,7 +65,6 @@ If you are a network operator or user and would like improved service support or | |
| | Holesky | 17000 | https://holesky.hypersync.xyz or https://17000.hypersync.xyz | https://holesky.rpc.hypersync.xyz or https://17000.rpc.hypersync.xyz | 🎒 | | ||
| | Hoodi | 560048 | https://hoodi.hypersync.xyz or https://560048.hypersync.xyz | https://hoodi.rpc.hypersync.xyz or https://560048.rpc.hypersync.xyz | 🎒 | | ||
| | Hyperliquid | 999 | https://hyperliquid.hypersync.xyz or https://999.hypersync.xyz | https://hyperliquid.rpc.hypersync.xyz or https://999.rpc.hypersync.xyz | 🪨 | | ||
| | Injective* | 1776 | https://injective.hypersync.xyz or https://1776.hypersync.xyz | https://injective.rpc.hypersync.xyz or https://1776.rpc.hypersync.xyz | 🥉 | | ||
| | Ink | 57073 | https://ink.hypersync.xyz or https://57073.hypersync.xyz | https://ink.rpc.hypersync.xyz or https://57073.rpc.hypersync.xyz | 🪨 | | ||
| | Kroma | 255 | https://kroma.hypersync.xyz or https://255.hypersync.xyz | https://kroma.rpc.hypersync.xyz or https://255.rpc.hypersync.xyz | 🪨 | | ||
| | Linea | 59144 | https://linea.hypersync.xyz or https://59144.hypersync.xyz | https://linea.rpc.hypersync.xyz or https://59144.rpc.hypersync.xyz | 🥉 | | ||
|
|
@@ -122,7 +122,6 @@ If you are a network operator or user and would like improved service support or | |
| **Notes:** | ||
|
|
||
| - **Base Traces***: Start block: 39000000 (earlier blocks available on request) | ||
| - **Injective***: Start block: 129846180 (non-evm before that) | ||
| - **Sei***: Start block: 79123881 (non-evm before that) | ||
| - **Sei Testnet***: Start block: 186100000 (non-evm before that) | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update the manual TOC for this new section.
This subsection is new, but the Table of Contents still jumps from PNPM version compatibility to Runtime Issues. Please add a nested entry for “Using Envio inside a monorepo” so the in-page navigation stays accurate.
🤖 Prompt for AI Agents