-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Auth Error: Amplify has not been configured correctly after upgrading to auth 3.4.17/ui-react 0.2.34 #7619
Comments
Did you try cleaning your How are you importing and configuring Amplify, I tried this on a react app and it work, but I also want to try how your doing this.
import React from "react";
import Auth from "@aws-amplify/auth";
import { AmplifyAuthenticator, AmplifySignOut } from "@aws-amplify/ui-react";
import awsconfig from "./aws-exports";
Auth.configure(awsconfig);
const App = () => (
<AmplifyAuthenticator>
<div>
My App
<AmplifySignOut />
</div>
</AmplifyAuthenticator>
);
export default App;
{
"name": "auth-issue-7604",
"version": "0.1.0",
"private": true,
"dependencies": {
"@aws-amplify/auth": "^3.4.17",
"@aws-amplify/ui-react": "^0.2.34",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"react": "^17.0.1",
"react-dom": "^17.0.1",
"react-scripts": "4.0.1",
"web-vitals": "^0.2.4"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
"eslintConfig": {
"extends": [
"react-app",
"react-app/jest"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}
|
We did an I am working on having our devs build up some sort of shareable replication of the issue (although this is precisely the "Amplify costs us way more than it saves us" frustrations I have with the product, I know bugs will happen, but the amount of times we've dedicated days of our development resources to fixing AWS's regressions, problems, or working around them....). It will likely be a fork/branch of a dev project where this is also showing itself so we can avoid production code disclosures but I would still want to do this less-than-publicly if possible (are you perhaps part of this nebulous "service team" our AWS Support ticket mentions? I am fine sharing it through/under the protections of our AWS Support agreement, nothing horribly confidential that needs more than that, but not quite a public repo thing). Thanks for your help, I appreciate and know you, personally, are trying to solve our problem with helpfulness and dedication to our issue, and my frustrations with the broader machinery that is AWS that should do (way) better is not your fault (which is why I am trying to get management attention to these quality issues because any one of these is not a "screw it, we are out" level issue, but the hit parade of issues that never ends absolutely is a business-case-breaker, and I will vocally and endlessly dissuade anyone who will listen, small and large from ever choosing Amplify for anything, our experience has been that abysmal, but that's a separate item). Here's our current index.tsx on that project:
|
Is possible that you have on your
Having on your If you installed Please let me know if that helps |
Thank you very much, this has eluded us and all levels of AWS support. This project started before the modularization was the default and looks like suddenly something changed in the modularized libs that hit on this duplication. Thank you for catching this, it seems to address the issue we have here, in #4315, and in #7555. We are using aws-amplify 3.3.14 and importing the @aws-amplify/ui-react 3.4.17 and things are working, thank you very much again. Perhaps a note in the modularized libs that projects migrating/coming from the non-modularized library (or a post-install hook that looks for it in package.json even and puts out an NPM warn?) could help avoid a lot of heartache for you guys, support, and customers, because while this sure seems like a "DUH" issue, when projects that started before the modularized libs were standard have new devs come on board that now look at new documentation that points them to modularized libs, these kinds of issues do occur. Again, thank you for your help, dedicated, smart, and helpful guys like you are what is keeping us here and keeping us in production and developing. |
I am glad that your problem is now fixed!, I am happy to help and we appreciate all your feedback. I created this issue to avoid this problem in the future. |
|
This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs. Looking for a help forum? We recommend joining the Amplify Community Discord server |
Describe the bug
Using the React UI components to provide login/reset/signup (no real customization, pretty much out of the box), after upgrade to
"@aws-amplify/auth": "^3.4.17","@aws-amplify/ui-react": "^0.2.34",
the following error is observed in the javascript console of the client and no authentication/login occurs:This appears to be a regression of #4315 but am opening as separate, new issue pursuant to direction from @sammartinez
(thank you!).
To Reproduce
Steps to reproduce the behavior:
Upgrade working project to
"@aws-amplify/auth": "^3.4.17","@aws-amplify/ui-react": "^0.2.34",
Known good at
There were NO other changes in ANYTHING, literally not a single line of code or config change in our project. We can swap libraries, redeploy, and break and fix simply with rev changes as mentioned above.
Expected behavior
A clear and concise description of what you expected to happen.
Nothing. We expect absolutely nothing to change. No breaking changes were noted in the library releases and this is a 0.0.XXXX release and this library claims semver compliance.
Code Snippet
Please provide a code snippet or a link to sample code of the issue you are experiencing to help us reproduce the issue. (Be sure to remove any sensitive data)
No code necessary. Just bump vers.
Screenshots
If applicable, add screenshots to help explain your problem.
What is Configured?
If applicable, please provide what is configured for Amplify CLI:
aws-exports
file:For any further code/config disclosure, please contact us directly via AWS Support Case 7895928411 that is open for this issue in our account.
The text was updated successfully, but these errors were encountered: