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 trial

JavaScript Building Applications with React and Redux Putting it all Together Updating the Player, Counter and AddPlayerForm Components

benjaminmosery
benjaminmosery
6,346 Points

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.

1 Answer

benjaminmosery
benjaminmosery
6,346 Points

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 react-hot-loader@1.3.0)

Once I did all this the error disappeared. Hope this helps.