How can I solve problem with require()?

See my answer to another question that has been asked a few days ago: