curist / grunt-bower

grunt task to copy bower installed packages to other folder(s)
MIT License
93 stars 27 forks source link

TypeError: Cannot read property '_' of undefined #4

Closed HoundstoothSTL closed 11 years ago

HoundstoothSTL commented 11 years ago

Using grunt 0.4.0a and set up my Gruntfile.js with

bower: {
  dev: {
    dest: 'dist/components'
  }
},

Then heading over to terminal and running

grunt bower

and getting the following output error

Loading "bower.js" tasks...ERROR
>> TypeError: Cannot read property '_' of undefined
Warning: Cannot read property 'message' of undefined Use --force to continue.

Aborted due to warnings.

package.json looks like this

{
  "name": "bolt",
  "description": "Bolt starter theme for development",
  "version": "1.0.0",
  "author": "test",
  "homepage": "http://test.com/bolt",
  "repository": {
    "type": "git",
    "url": "https://github.com/test/bolt.git"
  },
  "bugs": {
    "url": "https://github.com/test/bolt/issues"
  },
  "licenses": [
    {
      "type": "MIT",
      "url": "https://github.com/test/bolt/blob/master/LICENSE"
    }
  ],
  "dependencies": {},
  "devDependencies": {
    "clean-css": "~0.4.1",
    "grunt": "~0.4.0a",
    "rimraf": "~2.0.x",
    "grunt-compass": "~0.3.7",
    "grunt-css": "~0.5.1",
    "grunt-contrib-copy": "~0.3.2",
    "grunt-bower": "~0.4.2"
  }
}

Obviously also included

grunt.loadNpmTasks('grunt-bower');

Any ideas? I got nothing.

curist commented 11 years ago

grunt v0.4.0 has many API changed, fixed in grunt-bower@0.4.2a