DEV Community


Discussion on: Need Help About JavaScript Error Log

bayuangora profile image
Bayu Angora Author • Edited

I think the problem is the id (darkBtn and lightBtn) is missing from home page and only exist on inner page. So, I added the id to home page too, and all fixed. Thanks for all your suggestion here. It really helps a lot.