Next.js Discord

Discord Forum

Minified React error, uncaught AggregateError

Answered
Spectacled bear posted this in #help-forum
Open in Discord
Spectacled bearOP
 window.console.error = function() {
            for (var e = arguments.length, t = Array(e), r = 0; r < e; r++)
                t[r] = arguments[r];
            (0,
            h.isNextRouterError)(t[0]) || _.apply(window.console, t)
        }


I've been converting my client component to server component and have stumbled accross this pain of a problem I am finding it difficult to debug.

If I run in dev mode the problem never occurs. If I deploy in production or yarn build and yarn start then it breaks. Usually happens after I log in and then change route.
Answered by Spectacled bear
gah! async function inside a client componenet would do it
View full answer

2 Replies

Spectacled bearOP
gah! async function inside a client componenet would do it
Answer