[Bug]: Package Installation Issues with pnpm v10.6.4
Package Scope
@suspensive/react-query
Bug description
Issue Description
When installing packages using pnpm install with pnpm version 10.6.4, the following packages fail to install:
- @suspensive/react-query
- @swc/core
- esbuild
Ignored build scripts: @suspensive/react-query, @swc/core, esbuild.
Run "pnpm approve-builds" to pick which dependencies should be allowed to run scripts.
Environment
- pnpm version: 10.6.4
- Node.js version: 20
- OS: macOS
Current Workaround
Currently resolving the issue by configuring onlyBuiltDependencies in the pnpm settings.
"pnpm": {
"onlyBuiltDependencies": [
"@suspensive/react-query",
"@swc/core",
"esbuild"
]
}
Expected behavior
No response
To Reproduce
No response
Possible Solution
No response
etc.
No response
People can be co-author:
| Candidate | Reasons | Count | Add this as commit message |
|---|---|---|---|
| @gwansikk | https://github.com/toss/suspensive/issues/1493#issuecomment-2763215267 https://github.com/toss/suspensive/issues/1493#issuecomment-3045721494 | 2 | Co-authored-by: gwansikk <[email protected]> |
| @SWARVY | https://github.com/toss/suspensive/issues/1493 | 1 | Co-authored-by: SWARVY <[email protected]> |
@SWARVY Thank you very much for reporting this. Due to other ongoing tasks, this issue is currently lower in priority (expected to be addressed by next weekend). Contributions are welcome if you're available.
@suspensive/react-query is designed to execute a script during the install cycle to apply the appropriate version(v4 or v5) of @tanstack/react-query for the user.
Ref: https://suspensive.org/docs/react-query/tanstack-query-compatibility
Starting from pnpm v10.1 and above, running scripts during the pnpm lifecycle (install) is disabled by default. This is expected behavior in pnpm v10.1 or later, and users must allow it by using the pnpm approve-builds command in their environment.
Thank you for reporting this.
ref:
- https://github.com/pnpm/pnpm/pull/8897
- https://github.com/pnpm/pnpm/pull/8963
- https://pnpm.io/cli/approve-builds