Bug Tracker

Opened 7 years ago

Closed 7 years ago

#13118 closed bug (invalid)

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

Change History (2)

comment:1 Changed 7 years ago by mikesherov

Owner: set to 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.

comment:2 Changed 7 years ago by trac-o-bot

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!

Note: See TracTickets for help on using tickets.