Skip to content

Commit

Permalink
Add more information to the error message
Browse files Browse the repository at this point in the history
  • Loading branch information
iartemiev committed Aug 23, 2019
1 parent b87497b commit 6494cdd
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/auth/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,14 @@ export const authErrorMessages: AuthErrorMessages = {
noConfig: {
message: DEFAULT_MSG,
log: `
Error: Amplify has not been configured correctly.
Please make sure you're passing the config object to Amplify.configure().
See https://aws-amplify.github.io/docs/js/authentication#configure-your-app for more information
Error: Amplify has not been configured correctly.
This error is typically caused by one of the following scenarios:
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\`
`
},
missingAuthConfig: {
Expand Down

0 comments on commit 6494cdd

Please sign in to comment.