question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Menu don't work in nextjs 12.3.1

See original GitHub issue

Reproduction link

https://github.com/ccdarvin/authcloud.git

Steps to reproduce

We have a menu in side left of page, when click in link display this:

Application error: a client-side exception has occurred (see the browser console for more information).

I had probed remove the Menu component, and problem is fixed

What is expected?

when you click on the link you should go to the other page

What is actually happening?

Display dis error

Application error: a client-side exception has occurred (see the browser console for more information).

in console show:

framework-7751730b10fa0f74.js:9 TypeError: number 0 is not iterable (cannot read property Symbol(Symbol.iterator))
    at new Map (<anonymous>)
    at 252-e9d1cab486ec2437.js:1:15175
    at 252-e9d1cab486ec2437.js:1:13936
    at eA (252-e9d1cab486ec2437.js:1:15154)
    at w (252-e9d1cab486ec2437.js:1:12192)
    at 252-e9d1cab486ec2437.js:1:12240
    at uJ (framework-7751730b10fa0f74.js:9:91731)
    at u1 (framework-7751730b10fa0f74.js:9:91927)
    at o5 (framework-7751730b10fa0f74.js:9:112680)
    at oQ (framework-7751730b10fa0f74.js:9:104018)

Error rendering page:  Error: Cancel rendering route
    at s (main-3bfbace5a300f221.js:1:20025)
    at main-3bfbace5a300f221.js:1:19965
    at new Promise (<anonymous>)
    at ei (main-3bfbace5a300f221.js:1:19936)
    at main-3bfbace5a300f221.js:1:17692
Environment Info
antd 4.23.6
React 18.2.0
System Windows 10
Browser chrome 106.0.5249.119

This problem only occurs then run:

yarn build
yarn start

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:3
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
ccdarvincommented, Oct 19, 2022

already I have the solution.

# next.config.js
 //swcMinify: true,

it comment swrMinify or set in false

1reaction
tohsaka888commented, Oct 20, 2022

already I have the solution.

# next.config.js
 //swcMinify: true,

it comment swrMinify or set in false

It is fixed on the latest nextjs canary release.

see more infomation

Read more comments on GitHub >

github_iconTop Results From Across the Web

Blog - Next.js 12.3
Open -source tooling that make local development and production builds faster. Claim your free ticket and see the future of Next.js and React ......
Read more >
Advanced Features: Middleware - Next.js
Middleware allows you to run code before a request is completed, then based on the incoming request, you can modify the response by...
Read more >
Advanced Features: Error Handling - Next.js
Error Handling. This documentation explains how you can handle development, server-side, and client-side errors. Handling Errors in Development.
Read more >
Upgrade Guide - Next.js
However, upgrading to Next.js 13 does not require using the new app directory. You can continue using pages with new features that work...
Read more >
Advanced Features: Custom `Document` - Next.js
Do not add application logic here or custom CSS (like styled-jsx ). If you need shared components in all your pages (like a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found