We ran into similar problems with Azure functions. Our team tried multiple things. One of them was to move the functions folder out of the src/ directory and have it at the root of the project. Azure is weird. Also, there are multiple flags associated with remote build, look into that as well.