For the law was given through Moses; grace and truth came through Jesus Christ.
John 1:17 ESV

Some translations incorrectly insert a "but" between the two clauses in this verse. The Law is not opposed to Grace and Truth. They work together. The Law given through Moses contains/reveals grace and truth, while the grace and truth given through Yeshua contains/reveals the true meaning and purpose of the Law.