First Next.JS project failing to deploy on Vercel.
Unanswered
dh posted this in #help-forum
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.
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?@dh 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.
This is because of a type mismatch. You’ve to ensure the types are same
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
@Anay-208 And also, for dataArray, you’ve to use useState
My bad you don’t
Ignore that message
@dh Thank you, i added "params" as a type under "dataArray" just to test things out but this was causing issues
Try running “npm run build†locally
And see If it works