TypeError on 'amplify update auth' with AWS Amplify in React Native Expo project

0

I'm developing a React Native application using Expo and I've encountered a persistent error when trying to update authentication settings with AWS Amplify. The error occurs in both Amplify CLI versions 6.0.28 and 4.3.46. I've included the error message and details about my environment below. Any insights or solutions would be greatly appreciated.

Error Message:

TypeError: Cannot read properties of undefined (reading 'toLowerCase')
    at getAllDefaults (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-category-auth/lib/provider-utils/awscloudformation/assets/cognito-defaults.js:64:45)
    at Object.default (/snapshot/amplify-cli/build/node_modules/@aws-amplify/amplify-category-auth/lib/provider-utils/awscloudformation/question-factories/core-questions.js:57:20)
    // Additional stack trace
🛑 There was an error adding the auth resource

Steps to Reproduce:

  1. Open terminal in the project directory.
  2. Run amplify update auth.
  3. Error occurs immediately after the prompt warning about possible side effects to dependent Cognito resources.

I have tried the following without success:

  • Reinstalling Node modules.
  • Downgrading Amplify CLI to previous stable versions.

Question: Has anyone else encountered this error or have any suggestions on how to resolve it? Could this be related to a specific configuration or compatibility issue with React Native and Expo?

No Answers

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions