Skip to main content

Bug Tracker

Side navigation

#13118 closed bug (invalid)

Opened December 26, 2012 05:18PM UTC

Closed January 10, 2013 09:05AM UTC

Build fails on master

Reported by: isaacs Owned by: isaacs
Priority: undecided Milestone: None
Component: unfiled Version: git
Keywords: Cc:
Blocked by: Blocking:
Description

The build instructions fail on the current master because there's no grunt.js file. There's a Gruntfile.js, but using that also fails. Output:

$ grunt
<FATAL> Unable to find "grunt.js" config file. Do you need any --help? </FATAL>

$ grunt --config Gruntfile.js 
Running "update_submodules" task

Running "selector:src/selector.js" (selector) task
File 'src/selector.js' created.

Running "build:dist/jquery.js:*" (build) task

/usr/local/lib/node_modules/grunt/lib/util/task.js:352
          throw e;
                ^
TypeError: Cannot call method 'forEach' of undefined
    at Object.<anonymous> (/Users/isaacs/dev/js/jquery/Gruntfile.js:297:8)
    at Object.task.registerMultiTask.thisTask (/usr/local/lib/node_modules/grunt/lib/grunt/task.js:109:15)
    at Object.task.registerTask.thisTask.fn (/usr/local/lib/node_modules/grunt/lib/grunt/task.js:58:16)
    at Task.<anonymous> (/usr/local/lib/node_modules/grunt/lib/util/task.js:343:36)
    at Task.<anonymous> (/usr/local/lib/node_modules/grunt/lib/util/task.js:319:9)
    at Task.<anonymous> (/usr/local/lib/node_modules/grunt/lib/util/task.js:346:11)
    at Task.<anonymous> (/usr/local/lib/node_modules/grunt/lib/util/task.js:319:9)
    at Task.<anonymous> (/usr/local/lib/node_modules/grunt/lib/util/task.js:346:11)
    at Task.<anonymous> (/usr/local/lib/node_modules/grunt/lib/util/task.js:319:9)
    at Task.<anonymous> (/usr/local/lib/node_modules/grunt/lib/util/task.js:346:11)

$ grunt --version
grunt v0.3.17
Attachments (0)
Change History (2)

Changed December 26, 2012 05:56PM UTC by mikesherov comment:1

owner: → isaacs
status: newpending

isaacs, thanks for keeping an eye on us ;-)

You need to globally update your grunt, as outlined here: https://github.com/gruntjs/grunt/wiki/Upgrading-from-0.3-to-0.4

Grunt 0.4 has backcompat for 0.3, so you should be fine.

Let me know if it works for you.

Changed January 10, 2013 09:05AM UTC by trac-o-bot comment:2

resolution: → invalid
status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!