Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialTim Wörner
4,209 PointsError in Scoreboard.js PropTypes: "'types' can only be used in a .ts file"
npm start throws an error message. I tried just downloading the code and using that, but the issue persists. The entire static propTypes declaration is underlined in red. Anyone else have the same issue?
2 Answers
Kevin Becerra
14,243 PointsThe Error you're getting is because you kept the semi colon in the code and that doesn't follow the guidelines set by ESlint changing it to an equals sign will fix this error you're getting. whatever you use doesn't break the application but if you want to have the error disappear you're gonna need the equals sign.
Hope this helps!
Jacob Smith
10,926 Points@kzinser It is frustrating, but don't let that deter you. Finding those nuances in the languages is always gonna happen. Keep at it! But yes, the video should be updated. 🙈
kzinser
2,694 Pointskzinser
2,694 PointsMaybe the video should be updated because I saw this question elsewhere regarding the same issue. This is very frustrating.