Application error: a client-side exception has occurred (see the browser console for more information).のエラー
next.js
以下の行でエラーが発生する
console.log(“user!.username … " + JSON.stringify(user!.username as string))
次のように変えるとエラーが取りあえず直った。
console.log(“user?.username … " + JSON.stringify(user?.username))
?も!もつけないと、Object is possibly 'undefined’.というエラーが出る。
関連記事

Warning: Each child in a list should have a unique “key” prop.
Code that gives an error const aaa = tod ...

{“code”:”BadRequest”,”message”:”The server did not understand the operation that was requested.”,”type”:”client”}のエラー
動作環境 next.jsnode v16.13.0amplify NextAut ...

Binding element ‘name’ implicitly has an ‘any’ type. のエラー
動作環境 nextjs エラーの出ているコード (ファイル名:_app.tsx) ...

const [ session ] = useSession()でエラーになるのを解決
タイトルが適当ではない気がしますが・・・。検索で引っかかればOK的な感じです。 ...

Error: No router instance found. You should only use “next/router” on the client side of your app.のエラーを解決
動作環境 AmplifyNext.jsMacOSでnpm run buildで発 ...