The problem was in deep dependencies which didn't update during simple git dokku pushing. Old deep dependencies couldn't work with node.js 3, 4 and 5.
When the project was deleted and pushed again all dependencies was rebuilt. Some of them have been replaced.