-
Notifications
You must be signed in to change notification settings - Fork 826
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
Error Initializing AWS Amplify Environment: "Cannot read properties of undefined (reading 'securityType') #14034
Comments
Hey @albiorixvimal, could you try adding |
@albiorixvimal thank you for the getting back on this. On Amplify console, could you add the additionally, could you provide us some information on the project, such as resources created in the project(API with auth modes, auth etc)? |
Thanks, @ykethan, for replying. I enabled the Debug output in the environment variable; here is the log I am getting after adding it.
|
Hey @albiorixvimal, thank you for the information. From the trace appear to be coming from the graphQL API transformer and noticed the key is referred from the amplify-cli/packages/amplify-provider-awscloudformation/src/upload-appsync-files.js Lines 62 to 72 in b8b6498
Is the project using a GraphQL API using v1 transformer version? could you provide us the additionally, noticed a similar issue here: #1162 (comment) |
@ykethan thanks for the quick response. Updating the backend-config.json file with the comment you mentioned - #1162 (comment)
worked initially, but now I’m encountering a new error: graphql.schema not defined after applying these changes. Now, I encountered an issue where I
because there is no folder named generateModels in the api directory. However, after adding this output setting, the generateModels folder is created inside api, and due to that it looking for the schema and it causing issue. I’m unsure whether this folder is autogenerated or if I need to make manual adjustments. I’m relatively new to Amplify and would appreciate guidance. Here’s my current backend-config.json file:
here is cli.json as asked
Questions:
|
Hey @albiorixvimal, is this a new project? |
@ykethan Thank you for you quick response and support. I removed that extra Once again thank you so much. you saved my days :) |
Glad to hear you were able to get this working. Closing the issue, do reach out if you require any assistance. |
This issue is now closed. Comments on closed issues are hard for our team to see. |
How did you install the Amplify CLI?
npm i -g @aws-amplify/cli
If applicable, what version of Node.js are you using?
v14.15.0
Amplify CLI Version
12.13.1
What operating system are you using?
windows
Did you make any manual changes to the cloud resources managed by Amplify? Please describe the changes made.
no
Describe the bug
I'm encountering an error while trying to initialize or configure my AWS Amplify environment. I am getting the error in amplify cli build.
What I've Tried:
Verified the contents of the aws-exports.js file:
Questions/Help Needed:
What could be causing the securityType property to be undefined?
Is there a specific step I’m missing during Amplify initialization or configuration?
Should securityType be automatically generated in the aws-exports.js file?
Any assistance or guidance would be greatly appreciated. Thank you!
Expected behavior
Build should run sucessfully
Reproduction steps
Project Identifier
No response
Log output
Updated to the latest versions of aws-amplify
The error message is as follows:
Additional information
No response
Before submitting, please confirm:
The text was updated successfully, but these errors were encountered: