Just installed aws-amplify
to a Next.js project and the project stops working when I install the configs
#13793
Closed
3 tasks done
Labels
amazon-cognito-identity-js
Used for issues related to this specific package within the monorepo
Auth
Related to Auth components/category
Next.js
pending-maintainer-response
Issue is pending a response from the Amplify team.
question
General question
Before opening, please confirm:
JavaScript Framework
Next.js
Amplify APIs
Authentication
Amplify Version
v6
Amplify Categories
auth
Backend
None
Environment information
Describe the bug
I have a Next.js project using the
amazon-cognito-identity-js
library. This has become a nightmare because there is essentially no documentation for the library (I can't find this anywhere and don't know how it maps to Amplify). Aside from this, the library now has this message:Given this I decided to install Amplify to my project with this command:
After installing the project I created the following config file:
This function is imported into my
_app.tsx
file:After adding the config setting I get this error:
When the app runs without this it works just fine.
Expected behavior
I was expecting the library to not cause problems.
Reproduction steps
Reproduction could probably be done with this template: https://github.com/ramon-san/next-template. The website I am currently building originally comes from this template.
Code Snippet
// Put your code below this line.
Log output
aws-exports.js
No response
Manual configuration
Additional configuration
No response
Mobile Device
No response
Mobile Operating System
No response
Mobile Browser
No response
Mobile Browser Version
No response
Additional information and screenshots
I am simply looking for a library that makes handling Cognito requests simple, if there is a more vanilla way of doing this without installing Amplify please let me know.
The text was updated successfully, but these errors were encountered: