31 They continued to use the idol Micah had made, all the time the house of God was in Shiloh.

Read Judges 18:31 Using Other Translations

And they set them up Micah's graven image, which he made, all the time that the house of God was in Shiloh.
So they set up Micah's carved image that he made, as long as the house of God was at Shiloh.
So Micah’s carved image was worshiped by the tribe of Dan as long as the Tabernacle of God remained at Shiloh.