Read concern level of majority error while upgrading Sharded Cluster from 3.2 to 3.4
Problem seems to be that mongodb 3.4 requires that config server is replica set (CSRS) and not old type single node config server. So you need to initialize your config server as replica set and then start it with --replSet  parameter.

Please check here