aliyun / aliyun/credentials-nodejs
Usage with Yarn PnP leads to error with "debug" dependency
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15
- Forks
- 16
- PR merge metrics
- No merged PRs in 30d
Description
/private/tmp/toolbelt-yarn/.pnp.cjs:10250
Error.captureStackTrace(firstError);
^
Error: @alicloud/credentials tried to access debug, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
Required package: debug
Required by: @alicloud/credentials@npm:2.4.4 (via /workspace/.yarn/berry/cache/@alicloud-credentials-npm-2.4.4-7caa9c1be1-10c0.zip/node_modules/@alicloud/credentials/dist/src/providers/)
Require stack:
- /workspace/.yarn/berry/cache/@alicloud-credentials-npm-2.4.4-7caa9c1be1-10c0.zip/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.js
- /workspace/.yarn/berry/cache/@alicloud-credentials-npm-2.4.4-7caa9c1be1-10c0.zip/node_modules/@alicloud/credentials/dist/src/client.js
- /workspace/.yarn/berry/cache/@alicloud-openapi-client-npm-0.4.15-e7dd08dde9-10c0.zip/node_modules/@alicloud/openapi-client/dist/client.js
at require$$0.Module._resolveFilename (/private/tmp/toolbelt-yarn/.pnp.cjs:10250:13)
at Module._load (node:internal/modules/cjs/loader:1051:27)
at require$$0.Module._load (/private/tmp/toolbelt-yarn/.pnp.cjs:10141:31)
at Module.require (node:internal/modules/cjs/loader:1311:19)
at require (node:internal/modules/helpers:179:18)
at Object.<anonymous> (/workspace/.yarn/berry/cache/@alicloud-credentials-npm-2.4.4-7caa9c1be1-10c0.zip/node_modules/@alicloud/credentials/dist/src/providers/ram_role_arn.js:30:33)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
at require$$0.Module._extensions..js (/private/tmp/toolbelt-yarn/.pnp.cjs:10294:35)
at Module.load (node:internal/modules/cjs/loader:1288:32)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with Yarn Plug'n'Play and inspect the package metadata and dependency path for @alicloud/credentials, which is reported to require debug without declaring it. Done means the credentials package can load under PnP without the shown ambiguous require error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- node.js, typescript
- Domain
- authentication, cloud
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100