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 React Router 4 Basics Getting Started with React Router Inline Rendering with <Route>

Is this workshop too outdated to work correctly? TypeError: __webpack_require__.i(...) is not a function

Extracted the inline-rendering course-directory file and installed dependencies with npm i and started the app. I was given the error above. I noticed a ton of deprecated dependencies. It seems impossible to follow along with the workshop at this point. I'm guessing this is too outdated? Hopefully I'm wrong...

1 Answer

James Crosslin
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
James Crosslin
Full Stack JavaScript Techdegree Graduate 16,882 Points

Hey Zachary, did you run npm audit fix in your console? It's impossible to keep everything up to date, but our package manager gives us some great options for tackling deprecated code. I ended up running npm audit fix --force, which fixed all the breaking changes, security issues, and updated my React dependency to version 17.0.2. Hope this helps!