A town council has joined residents in objecting to plans for 22 new homes to be built on the edge of a flood plane.