You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Disclaimer: This bug report has been produced with chatGPT, however it is accurate to the extent of my understanding.
Description
When running pnpm run build:all to build all packages in the indexer monorepo, the build process fails because the --workspace-concurrency=Infinity flag is being incorrectly passed to the TypeScript compiler (tsc). This flag is intended for pnpm, but it gets propagated down to the tsc command, causing the build to break.
Steps to Reproduce
Clone the dYdX V4 Indexer repository.
Navigate to the indexer directory.
Run the following command:
pnpm run build:all
Observe the error message.
Expected Behavior
The build should succeed without passing the --workspace-concurrency=Infinity flag to the TypeScript compiler.
Actual Behavior
The build fails with the following error:
> [email protected] build:all /path/to/indexer
> pnpm recursive run build --workspace-concurrency=Infinity
Scope: 18 of 19 workspace projects
packages/dev build$ rm -rf build/ && tsc "--workspace-concurrency=Infinity"
│ error TS5023: Unknown compiler option '--workspace-concurrency=Infinity'.
└─ Failed in 185ms at /path/to/indexer/packages/dev
Proposed Solution
To fix this issue, we need to remove the --workspace-concurrency=Infinity flag from the build:all script in indexer/package.json. The relevant section should be modified as follows:
"scripts": {
"build:all": "pnpm recursive run build",
...
}
Alternatively, if concurrency control is necessary, we can replace Infinity with a more reasonable value, such as 4:
"build:all": "pnpm recursive run build --workspace-concurrency=4",
Environment
OS: Ubuntu 22.04
Node.js Version: v22.9.0
pnpm Version: 9.12.0
Logs
> [email protected] build:all /path/to/indexer
> pnpm recursive run build --workspace-concurrency=Infinity
Scope: 18 of 19 workspace projects
packages/dev build$ rm -rf build/ && tsc "--workspace-concurrency=Infinity"
│ error TS5023: Unknown compiler option '--workspace-concurrency=Infinity'.
└─ Failed in 185ms at /path/to/indexer/packages/dev
Additional Information
The build error is specific to the use of tsc, and it seems that the --workspace-concurrency=Infinity flag is being propagated to all package builds.
The text was updated successfully, but these errors were encountered:
I didn't run into this issue the second time I tried deploying the indexer. I believe that the problem was that the first time that I ran it I didn't have the TypeScript installed. The solution should be installing TypeScript before running the script.
Disclaimer: This bug report has been produced with chatGPT, however it is accurate to the extent of my understanding.
Description
When running
pnpm run build:all
to build all packages in theindexer
monorepo, the build process fails because the--workspace-concurrency=Infinity
flag is being incorrectly passed to the TypeScript compiler (tsc
). This flag is intended forpnpm
, but it gets propagated down to thetsc
command, causing the build to break.Steps to Reproduce
indexer
directory.Expected Behavior
The build should succeed without passing the
--workspace-concurrency=Infinity
flag to the TypeScript compiler.Actual Behavior
The build fails with the following error:
Proposed Solution
To fix this issue, we need to remove the
--workspace-concurrency=Infinity
flag from thebuild:all
script inindexer/package.json
. The relevant section should be modified as follows:Alternatively, if concurrency control is necessary, we can replace
Infinity
with a more reasonable value, such as4
:Environment
Logs
Additional Information
The build error is specific to the use of
tsc
, and it seems that the--workspace-concurrency=Infinity
flag is being propagated to all package builds.The text was updated successfully, but these errors were encountered: