Next.js Discord

Discord Forum

First Next.JS project failing to deploy on Vercel.

Unanswered
dh posted this in #help-forum
Open in Discord
dhOP
Hi all,

Could someone please point me in the right direction to getting a page to properly deploy on Vercel? I was able to successfully do this prior but after some changes I can see its complaining about "Failed to compile. Type error: Property 'params' is missing in type '{}' but required in type . Do you have any suggestion to troubleshoot?

16| <div>
17 | <h1 className="py-4 font-semibold">Our Products</h1>
18 | <Photogallery />
| ^
19 | </div>
20 | </main>
21 | );
Error: Command "npm run build" exited with 1"

i tried adding params as one of the data types but the value starts to complain.

11 Replies

Bicknell's Thrush
what happens if you run npm run build locally?
dhOP
it loads locally
@Anay-208 This is because of a type mismatch. You’ve to ensure the types are same
dhOP
Would you mind elaborating more? Sorry, i just started with Java, CSS, HTML a couple months ago and typescript is certainly lacking
@dh Would you mind elaborating more? Sorry, i just started with Java, CSS, HTML a couple months ago and typescript is certainly lacking
The var “value” doesn’t have the property “params”
@Anay-208 The var “value” doesn’t have the property “params”
dhOP
Thank you, i added "params" as a type under "dataArray" just to test things out but this was causing issues
Ignore that message
And see If it works