BUILD PROBLEM - CANT PUBLISH

Hi, my friends.
in the last four days, i can’t publish my app, because this error consist

Quando esta opção é ativada, as entradas de registro que não cabem em uma linha são concluídas na próxima.
Quando esta opção é ativada, as entradas de registro aparecem em ordem cronológica inversa.
Quando a opção é ativada, as entradas de registro são mostradas com carimbos de data/hora.
ERROR: failed to build: executing lifecycle: failed with status code: 51
ERROR: failed to build: exit status 1
Node.js v20.19.5"}
at ChildProcess._handle.onexit (node:internal/child_process:293:12)
at ChildProcess.emit (node:events:524:28)
at ChildProcess. (/layers/google.nodejs.firebasenextjs/npm_modules/node_modules/@apphosting/common/dist/index.js:64:24)
Error: Build process exited with error code 1.
^
reject(new Error(Build process exited with error code ${code}.));
/layers/google.nodejs.firebasenextjs/npm_modules/node_modules/@apphosting/common/dist/index.js:64
99 | }
98 | return pathname.startsWith(href);
97 | }
| ^

96 | return item.subItems.some(sub => pathname.startsWith(sub.href)) || pathname === href;`

  1. Preformatted text

`

95 | if (hasSubItems) {
94 | const hasSubItems = item?.subItems && item.subItems.length > 0;
Type error: ‘item.subItems’ is possibly ‘undefined’.
./src/components/layout/left-sidebar.tsx:96:14
Failed to compile.
Why you should do it regularly: GitHub - browserslist/update-db: CLI tool to update caniuse-lite to refresh target browsers from Browserslist config
npx update-browserslist-db@latest
Browserslist: caniuse-lite is outdated. Please run:

if someone can help me, i’ll be happy !

hey send me an inbox I can help

this is the issue Type error: ‘item.subItems’ is possibly ‘undefined’.
./src/components/layout/left-sidebar.tsx:96:14. open the file you should see the error showing in red.. just paste this to our ai it will fix it. let me know if that helps