serverless-domain-manager icon indicating copy to clipboard operation
serverless-domain-manager copied to clipboard

Unable to install v6.0.4+ due to `uuid` & `aws-sdk` reference issue in Yarn Berry (Yarn 3)

Open teriu opened this issue 2 years ago • 0 comments

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Bug Report

Error Description

When I try to install serverless-domain-manager 6.0.4 or 6.1.0 using Yarn 3 in a monorepo (Yarn workspaces), I get the following issue:

➤ YN0000: └ Completed in 0s 895ms
➤ YN0000: ┌ Link step
➤ YN0001: │ Error: ENOENT: no such file or directory, lstat '<project>/node_modules/serverless/node_modules/aws-sdk/node_modules/uuid/bin'
➤ YN0000: └ Completed in 4s 981ms
➤ YN0000: Failed with errors in 6s 752ms

Note: I've scrubbed the User directory path and replaced with <project>

Command Run yarn add serverless-domain-manager --exact --dev

Console Output

➤ YN0000: └ Completed in 0s 895ms
➤ YN0000: ┌ Link step
➤ YN0001: │ Error: ENOENT: no such file or directory, lstat '<project>/node_modules/serverless/node_modules/aws-sdk/node_modules/uuid/bin'
➤ YN0000: └ Completed in 4s 981ms
➤ YN0000: Failed with errors in 6s 752ms

Versions

  • Domain Manager version(s): v6.0.4, v6.1.0
  • Nodeversion: v16.16.0
  • Yarn version: 3.2.2 (Node Linked, not PnP)
  • Serverless Version: v3.22.0

Possible Solution This issue is not present in serverless-domain-manager versions < 6.0.4. I think it may be due to the removal of peerDependencies in 6.0.4 onwards.

teriu avatar Aug 25 '22 23:08 teriu