aws-amplify / aws-amplify/docs

Next.js code on React auth page

Open
#7,734 0 comments 0 reactions 0 assignees View on GitHub
amplify/auth
Dominant language
MDX
Stars
506
Forks
1.1k
Avg merge
3h 14m
Merged PRs (30d)
1

Description

**Describe the content issue**:
There is incorrect content on the https://docs.amplify.aws/react/build-a-backend/auth/set-up-auth/ page. The pages/_app.tsx referenced doesn't normally exist in a React app, the "pages" dir and the code snippet for it seem to be for next.js app. They use "pages" dir in older versions, and one of the imports is from 'next/app'.

Also, I did a manual install in an existing React app. The "npm add @aws-amplify/ui-react" failed, after doing the "npm add --save-dev @aws-amplify/backend@latest @aws-amplify/backend-cli@latest typescript" initially. Because one of the ui-react dependencies wanted to use a lower version of typescript then was installed at the beginning.

**URL page where content issue is**:
https://docs.amplify.aws/react/build-a-backend/auth/set-up-auth/

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.