-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Types incompatible issue when trying to execute amplify pull command #13440
Comments
@deepak-donde I'm facing the same issue while using below stepfunction code . Used @aws-cdk/aws-stepfunctions-tasks package with 1.181.0 version.
|
Hey @deepak-donde, thank you for reaching out. You will need to ensure the |
@ykethan Thanks for the response. I can resolve version mismatch error only after successful pull operation which is failing at this moment. |
@deepak-donde thank you for the info, tried reproducing the issue by creating a project with an older version of Amplify CLI(10.5.0) then pulling the app using the newer version of CLI(12.1.1) in a empty folder but did not observe this error message. |
@deepak-donde on conferring with the team, I was able to find that we should be able to upgrade/modify the cdk version after the |
@ykethan I think this problem will be solved once we get to know where the aws-cdk version is located on AWS console and if we can update it for custom resources( resources added by using command |
@deepak-donde to prevent any misunderstanding,
|
I was able to resolve this issue by following below steps:
Step 1 is not ideal case if you don't have access to developer who has successfully build the code |
|
How did you install the Amplify CLI?
npm
If applicable, what version of Node.js are you using?
18.16.0
Amplify CLI Version
12.1.1
What operating system are you using?
Ubuntu
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
No
Describe the bug
I have to work on existing amplify project so I followed below steps:
After execution of step 5, I get multiple issues related to aws-cdk compatibility in path
/amplify/backend/custom/example/
e.g.
I am able to resolve this issue on local environment by setting
aws-cdk
version to1.172.0
inpackage.json
in/amplify/backend/custom/example/
BUT
When i execute
amplify pull
it overridesaws-cdk
version to1.81.0
which causes incompatible issue.Because of this i am not able to pull amplify project.
Is there anyway to prevent
aws-cdk
version override from amplify pull command?or is there any way to update this version on AWS console and then execute amplify pull command?
Expected behavior
There should be a way to update dependencies version on AWS console for the resources created by
amplify add custom
commandReproduction steps
This is an existing project on which i configure amplify and executed
amplify pull
commandProject Identifier
No response
Log output
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: