in my case i try to deploy my serverless app and showing this error,i've trytried all the solution above and not works,unexpectedly the solution is as simple as delete the build.build folder and try redeploy, voila everythings good!. maybe try to delete the node_modules or build folder.