Skip to content

Bug: NextJS Amplify Starter Tutorial breaks when implementing login UI #8219

@el-zoltan

Description

@el-zoltan

Describe the bug
6. Implement login UI

The above step seems to be breaking now.

To Reproduce
Steps to reproduce the behavior:

  1. When implementing the login UI
  2. error: 'useForm' is not exported from 'react-hook-form' (imported as 'useForm')

Expected behavior
I expect to be able to follow along with a tutorial without it breaking.

Screenshots
Image

Desktop (please complete the following information):

  • OS: Mac
  • Browser: Arc
  • Version: 1.78.1

Smartphone (please complete the following information):

  • N/A

Additional context
One option for a simple fix is to "use client" and not export metadata from layout.tsx: react-hook-form/react-hook-form#11284

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions