Encountering an error on Vercel during the build deploy process. The error message says:
https://i.stack.imgur.com/Wk0Rw.png
Oddly, the command pnpm run build
works smoothly on my PC. Both it and the linting work fine. Upon inspecting the code, I noticed that both types here are numbers:
https://i.stack.imgur.com/D6C1j.png
https://i.stack.imgur.com/UIfhW.png
No errors are being reported on this line even after using parseInt on idValue.
Attempts made to resolve the issue:
Tried redeploying without Vercel cache (unchecked the option when redeploying).
Cleared git cache with
git rm -r --cached .
Tested converting the variable to a string. In local code, compatibility issues were raised, but on Vercel, a new error appeared in another field with the same problem.
Had set up GitHub Actions, but disabled it thinking it might be causing the issue, but no luck.
Sharing my repo link for assistance: https://github.com/KajiyamaVK/ipve/
The error path is specified in the folder.
EDIT:
Removing parseInt resulted in the component requesting a number as expected.
https://i.stack.imgur.com/LzegZ.png
SOLUTION
Resolved by deleting node_modules and reinstalling pnpm. All errors became visible afterwards.