-
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
Please pre-compile aws-amplify-react/dist/API/GraphQL/Connect.js
#652
Please pre-compile aws-amplify-react/dist/API/GraphQL/Connect.js
#652
Comments
aws-amplify-react/dist/API/GraphQL/Connect.js
aws-amplify-react/dist/API/GraphQL/Connect.js
Hello! Thanks for plugging the issue - I was using withAuthenticator() on a Gatsby starter site and was getting that error. Now I'm getting a "No userPool" error when I try to log in. I've associated my Gatsby project with a new AWS Mobile Hub backend, but still getting the same error when I try to sign up. It is most definitely associated with a Cognito user pool. Thoughts? |
Hi aws-amplify-react@0.1.41 fixed that problem. The issue you mention with No userPool it happen to me. If that happen I fixed by installing aws-amplify with the same version that is required for aws-amplify-react. And then install aws-amplify-react that should remove the folder I mentioned before. |
Hi @elorzafe, thanks for the tip! I tried upgrading to the latest aws-amplify (0.3.0) and aws-amplify-react (0.1.41) based on your instructions above, but to no avail. Maybe I'm doing something wrong? To recreate this:
Edit the src/pages/page-2.js to add:
Then navigate to the second page in the web browser, try to create a new user. I get a "No userPool" error. I can confirm withAuthenticator is working perfectly with a CRA app. Thoughts? |
Where did you initialize this?
I usually do this in the entry point of my app |
Ah. That would do it. I've added it into my Gatsby
Thanks! |
:-) |
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 |
When building app with this dependency with create-react-app it throws error:
Please pre-compile
aws-amplify-react/dist/API/GraphQL/Connect.js
see http://bit.ly/2tRViJ9
The text was updated successfully, but these errors were encountered: