react-component / react-component/util

reactRender is not a function when using Antd with NextJS App Router

Open
#606 17 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
670
Forks
205
Avg merge
11d 17h
Merged PRs (30d)
4

Description

I'm initializing a NextJS AppRouter project with Antd. I've been looking for a solution but can't find it, can anyone help me, pls.

  • Here are project dependencies:
    image

  • src/app/layout.tsx
    image

  • src/app/page.tsx
    image

It works until I click the button, console.log() ran but with errors
image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the error in the NextJS App Router setup shown in src/app/layout.tsx and src/app/page.tsx by clicking the button. First inspect the listed project dependencies and the console error shown in the report; done means identifying a confirmed cause and documenting a reliable fix or reproduction.

Written by the indexing model from the issue text.

Assessment

Tech stack
nextjs, react, typescript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.