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!

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 trial

JavaScript React Basics (retired) Designing Data Flow Restructuring State


propTypes: { title: PropTypes.string, initialPlayers: PropTypes.arrayOf(PropTypes.shape({ name: PropTypes.string.isRequired, score: PropTypes.num.isRequired, id: PropTypes.num.isRequired, })).isRequired, }

Hello, I am working with this piece of data, however I am using create-react-app and I cannot get my app to load due to the "arrayOf(PropTypes" it's throwing an error between the "f" and the "(", as if it does not like the arrayOf shape combo. Can you please guide me as to what could be the issue?