=== ระบบกำลังล้างไพ่และติดตั้งใหม่ทั้งหมด กรุณารอสักครู่ (อาจใช้เวลา 3-5 นาที) === >>> กำลังลบโฟลเดอร์และไฟล์ขยะจากการติดตั้งแบบเก่า... >>> กำลังรัน: install ใน backend... npm warn deprecated crypto@1.0.1: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in. npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. npm warn deprecated rimraf@2.7.1: Rimraf versions prior to v4 are no longer supported npm warn deprecated lodash.isequal@4.5.0: This package is deprecated. Use require('node:util').isDeepStrictEqual instead. npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated glob@7.2.3: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated fstream@1.0.12: This package is no longer supported. npm warn deprecated jpeg-exif@1.1.4: Package no longer supported. Contact Support at https://www.npmjs.com/support for more info. npm warn deprecated uuid@8.3.2: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). npm warn deprecated glob@10.5.0: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated uuid@10.0.0: uuid@10 and below is no longer supported. For ESM codebases, update to uuid@latest. For CommonJS codebases, use uuid@11 (but be aware this version will likely be deprecated in 2028). added 421 packages, and audited 422 packages in 34s 89 packages are looking for funding run `npm fund` for details 9 vulnerabilities (3 moderate, 5 high, 1 critical) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. [เสร็จสิ้น] รหัส: 0 >>> กำลังรัน: install ใน frontend... npm warn deprecated glob@10.3.10: Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting i@izs.me npm warn deprecated recharts@2.15.4: 1.x and 2.x branches are no longer active. Bump to Recharts v3 to receive latest features and bugfixes. See https://github.com/recharts/recharts/wiki/3.0-migration-guide npm warn deprecated eslint@8.57.1: This version is no longer supported. Please see https://eslint.org/version-support for other options. npm warn deprecated next@14.2.5: This version has a security vulnerability. Please upgrade to a patched version. See https://nextjs.org/blog/security-update-2025-12-11 for more details. added 359 packages, removed 230 packages, changed 86 packages, and audited 590 packages in 40s 155 packages are looking for funding run `npm fund` for details 8 vulnerabilities (1 moderate, 6 high, 1 critical) To address issues that do not require attention, run: npm audit fix To address all issues (including breaking changes), run: npm audit fix --force Run `npm audit` for details. [เสร็จสิ้น] รหัส: 0 >>> กำลังรัน: /home/mjpqynchap/thaiebid.site/myapp/backend/node_modules/typescript/bin/tsc ใน backend... src/routes/batches.ts(128,9): error TS2322: Type '{ batchId: string; geoFencePass: boolean; geoFenceReason: string; status: "DRAFT"; jobId?: string; teamId?: string; notes?: string; gpsLat?: number; gpsLng?: number; estQtyKg?: number; vehiclePlate?: string; driverName?: string; }' is not assignable to type '(Without & HarvestBatchUncheckedCreateInput) | (Without<...> & HarvestBatchCreateInput)'. Type '{ batchId: string; geoFencePass: boolean; geoFenceReason: string; status: "DRAFT"; jobId?: string; teamId?: string; notes?: string; gpsLat?: number; gpsLng?: number; estQtyKg?: number; vehiclePlate?: string; driverName?: string; }' is not assignable to type 'Without & HarvestBatchCreateInput'. Type '{ batchId: string; geoFencePass: boolean; geoFenceReason: string; status: "DRAFT"; jobId?: string; teamId?: string; notes?: string; gpsLat?: number; gpsLng?: number; estQtyKg?: number; vehiclePlate?: string; driverName?: string; }' is not assignable to type 'Without'. Types of property 'jobId' are incompatible. Type 'string' is not assignable to type 'never'. src/routes/farmers.ts(71,9): error TS2322: Type '{ farmerId?: string; fullName?: string; nationalId?: string; phone?: string; groupId?: string; memberStatus?: "ACTIVE" | "SUSPENDED"; }' is not assignable to type '(Without & FarmerUncheckedCreateInput) | (Without<...> & FarmerCreateInput)'. Type '{ farmerId?: string; fullName?: string; nationalId?: string; phone?: string; groupId?: string; memberStatus?: "ACTIVE" | "SUSPENDED"; }' is not assignable to type 'Without & FarmerCreateInput'. Type '{ farmerId?: string; fullName?: string; nationalId?: string; phone?: string; groupId?: string; memberStatus?: "ACTIVE" | "SUSPENDED"; }' is not assignable to type 'Without'. Types of property 'groupId' are incompatible. Type 'string' is not assignable to type 'never'. src/routes/farmers.ts(110,62): error TS2322: Type '{ code?: string; type?: "COOPERATIVE" | "COMMUNITY_ENTERPRISE"; name?: string; contact?: string; }' is not assignable to type '(Without & FarmerGroupUncheckedCreateInput) | (Without<...> & FarmerGroupCreateInput)'. Type '{ code?: string; type?: "COOPERATIVE" | "COMMUNITY_ENTERPRISE"; name?: string; contact?: string; }' is not assignable to type 'Without & FarmerGroupCreateInput'. Type '{ code?: string; type?: "COOPERATIVE" | "COMMUNITY_ENTERPRISE"; name?: string; contact?: string; }' is not assignable to type 'FarmerGroupCreateInput'. Property 'code' is optional in type '{ code?: string; type?: "COOPERATIVE" | "COMMUNITY_ENTERPRISE"; name?: string; contact?: string; }' but required in type 'FarmerGroupCreateInput'. src/routes/jobs.ts(86,9): error TS2322: Type '{ jobId: string; scheduledDate: Date; createdBy: string; plotId?: string; teamId?: string; estimatedQtyKg?: number; notes?: string; }' is not assignable to type '(Without & HarvestJobUncheckedCreateInput) | (Without<...> & HarvestJobCreateInput)'. Type '{ jobId: string; scheduledDate: Date; createdBy: string; plotId?: string; teamId?: string; estimatedQtyKg?: number; notes?: string; }' is not assignable to type 'Without & HarvestJobCreateInput'. Type '{ jobId: string; scheduledDate: Date; createdBy: string; plotId?: string; teamId?: string; estimatedQtyKg?: number; notes?: string; }' is not assignable to type 'Without'. Types of property 'plotId' are incompatible. Type 'string' is not assignable to type 'never'. src/routes/lots.ts(82,9): error TS2322: Type '{ producedAt: Date; notes?: string; millId?: string; lotId?: string; claimStatus?: "CLAIMED" | "PARTIAL" | "NONE"; }' is not assignable to type '(Without & ProductionLotUncheckedCreateInput) | (Without<...> & ProductionLotCreateInput)'. Type '{ producedAt: Date; notes?: string; millId?: string; lotId?: string; claimStatus?: "CLAIMED" | "PARTIAL" | "NONE"; }' is not assignable to type 'Without & ProductionLotCreateInput'. Type '{ producedAt: Date; notes?: string; millId?: string; lotId?: string; claimStatus?: "CLAIMED" | "PARTIAL" | "NONE"; }' is not assignable to type 'Without'. Types of property 'millId' are incompatible. Type 'string' is not assignable to type 'never'. src/routes/mill-receivings.ts(80,9): error TS2322: Type '{ receivedAt: Date; receivedById: string; varianceKg: number; variancePct: number; varianceFlag: boolean; notes?: string; ticketId?: string; millRxId?: string; millId?: string; millWeightKg?: number; lotId?: string; }' is not assignable to type '(Without & MillReceivingUncheckedCreateInput) | (Without<...> & MillReceivingCreateInput)'. Type '{ receivedAt: Date; receivedById: string; varianceKg: number; variancePct: number; varianceFlag: boolean; notes?: string; ticketId?: string; millRxId?: string; millId?: string; millWeightKg?: number; lotId?: string; }' is not assignable to type 'Without & MillReceivingCreateInput'. Type '{ receivedAt: Date; receivedById: string; varianceKg: number; variancePct: number; varianceFlag: boolean; notes?: string; ticketId?: string; millRxId?: string; millId?: string; millWeightKg?: number; lotId?: string; }' is not assignable to type 'Without'. Types of property 'ticketId' are incompatible. Type 'string' is not assignable to type 'never'. src/routes/mills.ts(20,52): error TS2322: Type '{ location?: string; name?: string; contact?: string; millCode?: string; }' is not assignable to type '(Without & MillUncheckedCreateInput) | (Without<...> & MillCreateInput)'. Type '{ location?: string; name?: string; contact?: string; millCode?: string; }' is not assignable to type 'Without & MillCreateInput'. Type '{ location?: string; name?: string; contact?: string; millCode?: string; }' is not assignable to type 'MillCreateInput'. Property 'millCode' is optional in type '{ location?: string; name?: string; contact?: string; millCode?: string; }' but required in type 'MillCreateInput'. src/routes/plots.ts(87,9): error TS2322: Type '{ farmerId?: string; plotId?: string; areaRai?: number; village?: string; subDistrict?: string; district?: string; province?: string; polygonGeoJson?: string; certStatus?: "SUSPENDED" | "PENDING" | "CERTIFIED"; docUrl?: string; }' is not assignable to type '(Without & PlotUncheckedCreateInput) | (Without<...> & PlotCreateInput)'. Type '{ farmerId?: string; plotId?: string; areaRai?: number; village?: string; subDistrict?: string; district?: string; province?: string; polygonGeoJson?: string; certStatus?: "SUSPENDED" | "PENDING" | "CERTIFIED"; docUrl?: string; }' is not assignable to type 'Without & PlotCreateInput'. Type '{ farmerId?: string; plotId?: string; areaRai?: number; village?: string; subDistrict?: string; district?: string; province?: string; polygonGeoJson?: string; certStatus?: "SUSPENDED" | "PENDING" | "CERTIFIED"; docUrl?: string; }' is not assignable to type 'Without'. Types of property 'farmerId' are incompatible. Type 'string' is not assignable to type 'never'. src/routes/ramp-tickets.ts(86,75): error TS2554: Expected 4-5 arguments, but got 6. src/routes/ramp-tickets.ts(141,95): error TS2554: Expected 4-5 arguments, but got 6. src/routes/ramp-tickets.ts(152,9): error TS2322: Type '{ ticketId: string; receivedAt: Date; buyerId: string; rspoClaim: boolean; yieldCapPass: boolean; massBalancePass: boolean; batchId?: string; actualWeightKg?: number; pricePerKg?: number; rampId?: string; grade?: string; }' is not assignable to type '(Without & RampTicketUncheckedCreateInput) | (Without<...> & RampTicketCreateInput)'. Type '{ ticketId: string; receivedAt: Date; buyerId: string; rspoClaim: boolean; yieldCapPass: boolean; massBalancePass: boolean; batchId?: string; actualWeightKg?: number; pricePerKg?: number; rampId?: string; grade?: string; }' is not assignable to type 'Without & RampTicketCreateInput'. Type '{ ticketId: string; receivedAt: Date; buyerId: string; rspoClaim: boolean; yieldCapPass: boolean; massBalancePass: boolean; batchId?: string; actualWeightKg?: number; pricePerKg?: number; rampId?: string; grade?: string; }' is not assignable to type 'Without'. Types of property 'batchId' are incompatible. Type 'string' is not assignable to type 'never'. src/routes/ramps.ts(28,52): error TS2322: Type '{ location?: string; name?: string; contact?: string; millId?: string; rampCode?: string; }' is not assignable to type '(Without & RampUncheckedCreateInput) | (Without<...> & RampCreateInput)'. Type '{ location?: string; name?: string; contact?: string; millId?: string; rampCode?: string; }' is not assignable to type 'Without & RampCreateInput'. Type '{ location?: string; name?: string; contact?: string; millId?: string; rampCode?: string; }' is not assignable to type 'Without'. Types of property 'millId' are incompatible. Type 'string' is not assignable to type 'never'. src/routes/teams.ts(50,22): error TS2322: Type '{ name?: string; phone?: string; idCard?: string; }[]' is not assignable to type '(Without & TeamMemberUncheckedCreateWithoutTeamInput) | (Without<...> & TeamMemberCreateWithoutTeamInput) | TeamMemberCreateWithoutTeamInput[] | TeamMemberUncheckedCreateWithoutTeamInput[]'. Type '{ name?: string; phone?: string; idCard?: string; }[]' is not assignable to type 'TeamMemberCreateWithoutTeamInput[]'. Type '{ name?: string; phone?: string; idCard?: string; }' is not assignable to type 'TeamMemberCreateWithoutTeamInput'. Property 'name' is optional in type '{ name?: string; phone?: string; idCard?: string; }' but required in type 'TeamMemberCreateWithoutTeamInput'. src/routes/teams.ts(85,15): error TS2322: Type '{ teamId: string; name?: string; phone?: string; idCard?: string; }[]' is not assignable to type 'TeamMemberCreateManyInput | TeamMemberCreateManyInput[]'. Type '{ teamId: string; name?: string; phone?: string; idCard?: string; }[]' is not assignable to type 'TeamMemberCreateManyInput[]'. Type '{ teamId: string; name?: string; phone?: string; idCard?: string; }' is not assignable to type 'TeamMemberCreateManyInput'. Property 'name' is optional in type '{ teamId: string; name?: string; phone?: string; idCard?: string; }' but required in type 'TeamMemberCreateManyInput'. [เสร็จสิ้น] รหัส: 2 >>> กำลังรัน: build ใน frontend... ⚠ You are using a non-standard "NODE_ENV" value in your environment. This creates inconsistencies in the project and is strongly advised against. Read more: https://nextjs.org/docs/messages/non-standard-node-env ▲ Next.js 14.2.5 Creating an optimized production build ... ⚠ Attempted to load @next/swc-linux-x64-gnu, but an error occurred: /home/mjpqynchap/thaiebid.site/myapp/frontend/node_modules/@next/swc-linux-x64-gnu/next-swc.linux-x64-gnu.node: ELF load command past end of file ⚠ Attempted to load @next/swc-linux-x64-musl, but it was not installed ⨯ Failed to load SWC binary for linux/x64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc > Build error occurred Error: Jest worker encountered 1 child process exceptions, exceeding retry limit at ChildProcessWorker.initialize (/home/mjpqynchap/thaiebid.site/myapp/frontend/node_modules/next/dist/compiled/jest-worker/index.js:1:11580) at ChildProcessWorker._onExit (/home/mjpqynchap/thaiebid.site/myapp/frontend/node_modules/next/dist/compiled/jest-worker/index.js:1:12545) at ChildProcess.emit (node:events:521:24) at ChildProcess._handle.onexit (node:internal/child_process:295:12) { type: 'WorkerError' } [เสร็จสิ้น] รหัส: 1 >>> กำลังรัน: generate ใน backend... Environment variables loaded from .env Prisma schema loaded from prisma/schema.prisma ✔ Generated Prisma Client (v5.22.0) to ./node_modules/@prisma/client in 527ms Start by importing your Prisma Client (See: https://pris.ly/d/importing-client) Tip: Need your database queries to be 1000x faster? Accelerate offers you that and more: https://pris.ly/tip-2-accelerate [เสร็จสิ้น] รหัส: 0 ======================================================= ติดตั้งแบบ Clean Install เสร็จสมบูรณ์ 100%! กรุณารีเฟรชหน้าเว็บ ======================================================= >>> ติดตั้งเสร็จแล้ว! กรุณากด F5 หรือรีเฟรชหน้าเว็บเพื่อเข้าใช้งานได้เลยครับ <<<