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

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!