amplify-education / serverless-domain-manager

Serverless plugin for managing custom domains with API Gateways.
MIT License
941 stars 232 forks source link

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

Closed teriu closed 10 months ago

teriu commented 2 years ago

Community Note

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

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.

rddimon commented 10 months ago

Hi @teriu

Hope you are doing well and the issue is fixed for you! There have been no activities for a long time and we are closing this issue.

Please try our latest version of the plugin and let us know in case any issues.