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.

Development Tools

Brad Davis
Brad Davis
3,297 Points

error when running "grunt" in command window for project - Up and Running with Grunt video tutorial

I've been watching the "Up and Running with Grunt" video and set up my project files as shown in the video. Everything installed correctly and I configured the gruntfile.js with my first task exactly as the video showed, which is to uglify all my .js files. When running grunt in the command window for my project I get this error:

Running "uglify:build" (uglify) task Warning: Cannot read property 'filter' of undefined Use --force to continue. Aborted due to warnings.

Has anyone by chance seen the video, tried the steps and run into the same issue? Any ideas why the error is occurring?

Thanks in advance.

Hi Brad,

I'm going to change your comment to an answer - just to help others know this has been resolved.

Cheers

1 Answer

Brad Davis
Brad Davis
3,297 Points

I found the problem. classic case of misspelled word: scr should have been src for the source files!