I'm having issues with deployment

the old version of the code is still working on vercel, but each time I tried to update it, it says failed to deploy in production.

I really don’t get what the error is, so I went to github. I saw the failed depolyed history and checked it out. It highlighted my index.html. The part that has to do with the logo. I edited and tried again, but same problem. So I decided not to use logo at all and see. Still same problem. I really don’t know how to read vercel logs or detect issues. Here is the link to the project: Login – Vercel

1 Like

Hey @iamhadeh, thanks for reaching out!

You can access your builds logs in the Deployments tab.

I reviewed your recent failed builds and they appears to be failing because of invalid imports. Refer to this guide for more information - How do I resolve a 'module not found' error?

Can you verify your imports are resolved properly? You can also try building the app locally to verify if the issue is with implementation or platform.

2 Likes

The app works locally. To be sure it was the import problem, I removed the import path and file completely. The issue still persists.

1 Like

Hi @iamhadeh, sorry to see you are facing this issue. Can you try running the build locally? Can you share the build output here?

This is what it looks like right now. I tried to run it locally and this is what it shows.

Hi @iamhadeh, thanks for sharing the image. Could you also share the output of the build commands (npm build or yarn build) from your local system? And see if you can serve the production build locally.

I tried “npm build,” but that doesn’t work. But ‘npm run build’ works. The website isn’t loading when I checked on my browser, using localhost. This is what it says on my terminal.

Hi @iamhadeh, thanks for sharing additional information. It looks like the build is working on the local system.

It’d help to look at the whole directory structure of your project to see which module imports are failing.

Can you confirm the Node.js version you are using on the local machine?

This is the version of node:

v20.11.1

Hi @iamhadeh, thanks for sharing the information.

From the build logs, it looks like the import statement at line #5 in Components/About-Components/mainAbout.jsx should be ./Mission-stat-sec instead of ./mission-stat-sec. This should resolve the build issue for you.

Let us know if this was helpful.

1 Like

Thank you. It’s working fine now.

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.