Can't deploy next.js site

From the error message:

Module not found: Can't resolve '../lib/client' in '/opt/build/repo/components'

Either the module isn’t in your repo or the filename is different than the one used in import statement.

This support guide mentions issues that can be faced due to mixed case filenames. Could you double check the filenames to ensure they are there and correct?