Deployment Help
Unanswered
Abyssinian posted this in #help-forum
AbyssinianOP
I created an Next.js and Typescript application using Bolt.New as I have no coding experience and decided to see if using AI to help me code was possible. I believe I have gotten my app to a place in time where I would like to deploy it. Unfortunately, everytime I try, whether on Netlify or excel, it fails and as I'm not familiar with coding, I have no idea what part of my code if erroneous and is causing the failures.
My public GitHub repo is https://github.com/airjer22/Dodgeball.git
Would anyone be able to help me look at the code and help me figure out what is causing the error.
Thanks in advance
My public GitHub repo is https://github.com/airjer22/Dodgeball.git
Would anyone be able to help me look at the code and help me figure out what is causing the error.
Thanks in advance
1 Reply
AbyssinianOP
I got the following diagnosis from Netlify:
The detailed error message at line 164 states that the "build.command" failed with exit code 1 when running npm run build.
Solution:
The main issue is a type error in the file app/bracket/page.tsx.
The specific error is at line 154 with the message "Type error: Argument of type '{...}' is not assignable to type '{...}'".
To resolve this error, you need to review and correct the data structure being passed to the setBracketData function at line 154 in the page.tsx file.
Make sure that the data structure matches the expected type defined in the function or update the function to accept the new data structure.
The detailed error message at line 164 states that the "build.command" failed with exit code 1 when running npm run build.
Solution:
The main issue is a type error in the file app/bracket/page.tsx.
The specific error is at line 154 with the message "Type error: Argument of type '{...}' is not assignable to type '{...}'".
To resolve this error, you need to review and correct the data structure being passed to the setBracketData function at line 154 in the page.tsx file.
Make sure that the data structure matches the expected type defined in the function or update the function to accept the new data structure.