Next.js Discord

Discord Forum

I can't log in to my app with Vercel but ok locally and there's a problem with the build

Unanswered
franck posted this in #help-forum
Open in Discord
Avatar
https://sharemycode.io/c/dc04606
ShareMyCode
Typescript snippet - route.ts - ShareMyCode.io
Here is a typescript snippet shared on ShareMyCode.io
Typescript snippet - route.ts - ShareMyCode.io
it tells me it can't find ./app/api/expertises/[id]/pdf/route.ts:448:29
Type error: Property 'securiteIncendie' does not exist on type 'IExpertise & Required<{ _id: unknown; }>'.

446 | },
447 | securiteIncendie: {
448 | extinguisher: rawData.securiteIncendie?.extinguisher || false,
| ^
449 | SmokeDetector: rawData.fireSecurity?.SmokeDetector false,
450 | FireBall: rawData.fireSecurity?.fireBall false
while they are in I expertise for the connection problem it's because I have 3.env a local one a prod and a classic ?https://sharemycode.io/c/b8048cb / https://sharemycode.io/c/4466d82 / https://sharemycode.io/c/ab52fa5

0 Replies