diff --git a/.github/ISSUE_TEMPLATE/1.bug_report.yaml b/.github/ISSUE_TEMPLATE/1.bug_report.yaml index d62874ca166..d9e877ddade 100644 --- a/.github/ISSUE_TEMPLATE/1.bug_report.yaml +++ b/.github/ISSUE_TEMPLATE/1.bug_report.yaml @@ -12,6 +12,8 @@ body: value: | For reference, the current versions of the Amplify JS packages are listed below. Please verify your issue against the latest version(s) of the relevant package(s): + You can find information in our docs site regarding [Upgrading Amplify packages](https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js). +
Click to expand version list @@ -123,7 +125,7 @@ body: description: | Please run the following command inside your project and copy/paste the output below: ``` - npx envinfo --system --binaries --browsers --npmPackages --npmGlobalPackages + npx envinfo --system --binaries --browsers --npmPackages --duplicates --npmGlobalPackages ``` value: |
diff --git a/packages/auth/src/Errors.ts b/packages/auth/src/Errors.ts index c2108204d13..afc3ee02342 100644 --- a/packages/auth/src/Errors.ts +++ b/packages/auth/src/Errors.ts @@ -58,17 +58,21 @@ export const authErrorMessages: AuthErrorMessages = { 1. Make sure you're passing the awsconfig object to Amplify.configure() in your app's entry point See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information - 2. There might be multiple conflicting versions of aws-amplify or amplify packages in your node_modules. - Try deleting your node_modules folder and reinstalling the dependencies with \`yarn install\` + 2. There might be multiple conflicting versions of amplify packages in your node_modules. + Refer to our docs site for help upgrading Amplify packages (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) `, }, missingAuthConfig: { message: AuthErrorStrings.DEFAULT_MSG, log: ` Error: Amplify has not been configured correctly. - The configuration object is missing required auth properties. - Did you run \`amplify push\` after adding auth via \`amplify add auth\`? - See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information + The configuration object is missing required auth properties. + This error is typically caused by one of the following scenarios: + + 1. Did you run \`amplify push\` after adding auth via \`amplify add auth\`? + See https://aws-amplify.github.io/docs/js/authentication#amplify-project-setup for more information + + 2. This could also be caused by multiple conflicting versions of amplify packages, see (https://docs.amplify.aws/lib/troubleshooting/upgrading/q/platform/js) for help upgrading Amplify packages. `, }, emptyUsername: {