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
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.
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.
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.