Issues about netlify remote build for my nextjs project

remote build showing the following error:

i’m using nextjs 13.4.3

@netlify/plugin-nextjs”: “4.33.1-lazy-server-import.0”,

my netlify.toml is like the following:

[[plugins]]
package = "@netlify/plugin-nextjs"

[build]
command = "yarn prebuild && yarn build"
publish = ".next"
11:15:29 AM: ➤ YN0007: │ core-js@npm:2.6.12 must be built because it never has been before or the last one failed
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR node:internal/errors:867
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR   const err = new Error(message);
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR               ^
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR Error: Command failed: node /opt/build/repo/frontend/.yarn/unplugged/@netlify-esbuild-npm-0.14.39-a2f420e29f/node_modules/@netlify/esbuild/bin/esbuild --version
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR /opt/build/repo/frontend/.pnp.cjs:43647
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR       Error.captureStackTrace(firstError);
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR             ^
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR Error: @netlify/esbuild tried to access esbuild, but it isn't declared in its dependencies; this makes the require call ambiguous and unsound.
➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR Required package: esbuild
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR Required by: @netlify/esbuild@npm:0.14.39 (via /opt/build/repo/frontend/.yarn/unplugged/@netlify-esbuild-npm-0.14.39-a2f420e29f/node_modules/@netlify/esbuild/bin/)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR Require stack:
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR - /opt/build/repo/frontend/.yarn/unplugged/@netlify-esbuild-npm-0.14.39-a2f420e29f/node_modules/@netlify/esbuild/bin/esbuild
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at require$$0.Module._resolveFilename (/opt/build/repo/frontend/.pnp.cjs:43647:13)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at Function.resolve (node:internal/modules/cjs/helpers:116:19)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at generateBinPath (/opt/build/repo/frontend/.yarn/unplugged/@netlify-esbuild-npm-0.14.39-a2f420e29f/node_modules/@netlify/esbuild/bin/esbuild:156:48)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at Object.<anonymous> (/opt/build/repo/frontend/.yarn/unplugged/@netlify-esbuild-npm-0.14.39-a2f420e29f/node_modules/@netlify/esbuild/bin/esbuild:168:27)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at Module._compile (node:internal/modules/cjs/loader:1256:14)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at Module._extensions..js (node:internal/modules/cjs/loader:1310:10)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at require$$0.Module._extensions..js (/opt/build/repo/frontend/.pnp.cjs:43691:33)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at Module.load (node:internal/modules/cjs/loader:1119:32)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at Module._load (node:internal/modules/cjs/loader:960:12)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at require$$0.Module._load (/opt/build/repo/frontend/.pnp.cjs:43536:31)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR Node.js v18.16.1
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at checkExecSyncError (node:child_process:885:11)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at Object.execFileSync (node:child_process:921:15)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at validateBinaryVersion (/opt/build/repo/frontend/.yarn/unplugged/@netlify-esbuild-npm-0.14.39-a2f420e29f/node_modules/@netlify/esbuild/install.js:101:32)
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     at /opt/build/repo/frontend/.yarn/unplugged/@netlify-esbuild-npm-0.14.39-a2f420e29f/node_modules/@netlify/esbuild/install.js:249:5 {
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR   status: 1,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR   signal: null,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR   output: [
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     null,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     Buffer(0) [Uint8Array] [],
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     Buffer(1483) [Uint8Array] [
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR        47, 111, 112, 116,  47,  98, 117, 105, 108, 100,  47, 114,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR       101, 112, 111,  47, 102, 114, 111, 110, 116, 101, 110, 100,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR        47,  46, 112, 110, 112,  46,  99, 106, 115,  58,  52,  51,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR        54,  52,  55,  10,  32,  32,  32,  32,  32,  32,  69, 114,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR       114, 111, 114,  46,  99,  97, 112, 116, 117, 114, 101,  83,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR       116,  97,  99, 107,  84, 114,  97,  99, 101,  40, 102, 105,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR       114, 115, 116,  69, 114, 114, 111, 114,  41,  59,  10,  32,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR        32,  32,  32,  32,  32,  32,  32,  32,  32,  32,  32,  94,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR        10,  10,  69, 114,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR       ... 1383 more items
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     ]
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR   ],
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR   pid: 2937,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR   stdout: Buffer(0) [Uint8Array] [],
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR   stderr: Buffer(1483) [Uint8Array] [
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR      47, 111, 112, 116,  47,  98, 117, 105, 108, 100,  47, 114,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     101, 112, 111,  47, 102, 114, 111, 110, 116, 101, 110, 100,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR      47,  46, 112, 110, 112,  46,  99, 106, 115,  58,  52,  51,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR      54,  52,  55,  10,  32,  32,  32,  32,  32,  32,  69, 114,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     114, 111, 114,  46,  99,  97, 112, 116, 117, 114, 101,  83,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     116,  97,  99, 107,  84, 114,  97,  99, 101,  40, 102, 105,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     114, 115, 116,  69, 114, 114, 111, 114,  41,  59,  10,  32,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR      32,  32,  32,  32,  32,  32,  32,  32,  32,  32,  32,  94,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR      10,  10,  69, 114,
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR     ... 1383 more items
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR   ]
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR }
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR
11:15:31 AM: ➤ YN0000: │ @netlify/esbuild@npm:0.14.39 STDERR Node.js v18.16.1

This is definitely not a valid version for production usage. In any case, I don’t believe that’s the issue. Please share the deploy link or id.