Surya Prakash Tumma Surya Prakash Tumma - 1 year ago 108
Javascript Question

Unable to run grunt getting error default task not found

I am trying to configure my project with grunt. when try to run a simple concat task I am getting below error.

enter image description here

here is my grunfile.js code.

module.export = function(grunt) {
pkg: grunt.file.readJSON('package.json'),
concat: {
options: {
separator: '\n',
dist: {
src: ['src/*.js'],
dest: 'build/techsprint.js'

grunt.registerTask('default', ['concat']);


My grunt version is grunt-cli v0.1.13
grunt v1.0.1

Answer Source

It looks like a simple typo: module.export should be module.exports.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download