Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
TypeError: validateSchema is not a function
I'm attempting to run my Scoreboard application and I'm getting the following error:
TypeError: validateSchema is not a function at processConfiguredOptions (C:\Users\bmose\React Redux\Modularizing the React Scoreboard Application\Cleaning Up Scoreboard Container\React Redux Course\node_modules\webpack-cli\bin\convert-argv.js:156:48) at module.exports (C:\Users\bmose\React Redux\Modularizing the React Scoreboard Application\Cleaning Up Scoreboard Container\React Redux Course\node_modules\webpack-cli\bin\convert-argv.js:150:10) at Object.<anonymous> (C:\Users\bmose\React Redux\Modularizing the React Scoreboard Application\Cleaning Up Scoreboard Container\React Redux Course\node_modules\webpack-dev-server\bin\webpack-dev-server.js:234:54) at Module._compile (internal/modules/cjs/loader.js:654:30) at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10) at Module.load (internal/modules/cjs/loader.js:566:32) at tryModuleLoad (internal/modules/cjs/loader.js:506:12) at Function.Module._load (internal/modules/cjs/loader.js:498:3) at Function.Module.runMain (internal/modules/cjs/loader.js:695:10) at startup (internal/bootstrap/node.js:201:19)
Any ideas would be helpful. After looking at the other topics on the forum I am still at a loss.
I did the following to fix this error:
-I downloaded proptypes using npm install prop-types and rewrote the import command for PropTypes in each component of the application. -I ensured the dispatch and player variables in the Scoreboard container were properly spelled. -In my package.json file, I ensure that react-hot-loader version 1.3.0 was installed. (using npm install email@example.com)
Once I did all this the error disappeared. Hope this helps.