{"action":"created","issue":{"url":"https://api.github.com/repos/nwjs/grunt-nw-builder/issues/157","repository_url":"https://api.github.com/repos/nwjs/grunt-nw-builder","labels_url":"https://api.github.com/repos/nwjs/grunt-nw-builder/issues/157/labels{/name}","comments_url":"https://api.github.com/repos/nwjs/grunt-nw-builder/issues/157/comments","events_url":"https://api.github.com/repos/nwjs/grunt-nw-builder/issues/157/events","html_url":"https://github.com/nwjs/grunt-nw-builder/issues/157","id":177574932,"number":157,"title":"Fatal error: undefined is not a function","user":{"login":"leknoppix","id":708669,"avatar_url":"https://avatars.githubusercontent.com/u/708669?v=3","gravatar_id":"","url":"https://api.github.com/users/leknoppix","html_url":"https://github.com/leknoppix","followers_url":"https://api.github.com/users/leknoppix/followers","following_url":"https://api.github.com/users/leknoppix/following{/other_user}","gists_url":"https://api.github.com/users/leknoppix/gists{/gist_id}","starred_url":"https://api.github.com/users/leknoppix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leknoppix/subscriptions","organizations_url":"https://api.github.com/users/leknoppix/orgs","repos_url":"https://api.github.com/users/leknoppix/repos","events_url":"https://api.github.com/users/leknoppix/events{/privacy}","received_events_url":"https://api.github.com/users/leknoppix/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-09-17T13:07:51Z","updated_at":"2016-09-17T20:24:23Z","closed_at":null,"body":"Hello,\r\nFor 2 days I desperately try to use this grunt module.\r\nMy file Gruntfile.js\r\n```\r\n'use strict';\r\nmodule.exports = function(grunt) {\r\n\r\n  grunt.initConfig({\r\n\tpkg: grunt.file.readJSON('package.json'),\r\n    nwjs: {\r\n      options: {\r\n        version: '0.3.0',\r\n        buildDir: './dist', // Where the build version of my NW.js app is saved\r\n        platforms: ['win', 'linux'], // These are the platforms that we want to build\r\n        flavor: 'normal'\r\n      },\r\n      src: ['rotateur/**/*'] // Your NW.js app\r\n    },\r\n  });\r\n  \r\n  \r\n  grunt.loadNpmTasks('grunt-nw-builder');\r\n  grunt.registerTask('default', ['nwjs']);\r\n};\r\n```\r\nMy package.json:\r\n```\r\n{\r\n  \"name\": \"Rotateur\",\r\n  \"author\": \"leknoppix\",\r\n  \"description\": \"Application en node Webkit pour retourner des images sans outil graphique\",\r\n  \"version\": \"0.3.0\",\r\n  \"devDependencies\": {\r\n    \"grunt\": \"^1.0.1\",\r\n    \"grunt-cli\": \"^1.2.0\",\r\n    \"grunt-nw-builder\": \"latest\"\r\n  }\r\n}\r\n\r\n```\r\nA screenprint\r\n![capture d ecran 2016-09-17 15 04 41](https://cloud.githubusercontent.com/assets/708669/18608396/3d1ffab0-7ce8-11e6-80c7-4d9ee4f4f331.png)\r\n\r\nAnd my package.json present in the folder rotation:\r\n````\r\n{\r\n  \"name\": \"Rotateur\",\r\n  \"main\": \"index.html\",\r\n  \"description\": \"Application en node Webkit pour retourner des images sans outil graphique\",\r\n  \"version\": \"0.3.0\",\r\n  \"window\": {\r\n    \"toolbar\": false,\r\n    \"height\": 800,\r\n    \"width:\": 1000,\r\n    \"frame\": true,\r\n    \"icon\": \"icons/logo.png\"\r\n  },\r\n  \"dependencies\": {\r\n    \"fs\": \"0.0.1-security\",\r\n    \"image-preloader\": \"^1.1.1\",\r\n    \"jimp\": \"^0.2.27\",\r\n    \"mkdirp\": \"^0.5.1\",\r\n    \"path\": \"^0.12.7\",\r\n    \"piexifjs\": \"^1.0.0\"\r\n  }\r\n}\r\n````\r\nWhen I laught the command grunt nwjs, I get:\r\n```\r\ngrunt nwjs\r\nRunning \"nwjs:src\" (nwjs) task\r\nFatal error: undefined is not a function\r\n```\r\n\r\nI do not understand what I'm doing wrong.\r\n\r\nleknoppix"},"comment":{"url":"https://api.github.com/repos/nwjs/grunt-nw-builder/issues/comments/247805501","html_url":"https://github.com/nwjs/grunt-nw-builder/issues/157#issuecomment-247805501","issue_url":"https://api.github.com/repos/nwjs/grunt-nw-builder/issues/157","id":247805501,"user":{"login":"leknoppix","id":708669,"avatar_url":"https://avatars.githubusercontent.com/u/708669?v=3","gravatar_id":"","url":"https://api.github.com/users/leknoppix","html_url":"https://github.com/leknoppix","followers_url":"https://api.github.com/users/leknoppix/followers","following_url":"https://api.github.com/users/leknoppix/following{/other_user}","gists_url":"https://api.github.com/users/leknoppix/gists{/gist_id}","starred_url":"https://api.github.com/users/leknoppix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leknoppix/subscriptions","organizations_url":"https://api.github.com/users/leknoppix/orgs","repos_url":"https://api.github.com/users/leknoppix/repos","events_url":"https://api.github.com/users/leknoppix/events{/privacy}","received_events_url":"https://api.github.com/users/leknoppix/received_events","type":"User","site_admin":false},"created_at":"2016-09-17T20:24:23Z","updated_at":"2016-09-17T20:24:23Z","body":"Activate the verbose, I get:\r\n[test.txt](https://github.com/nwjs/grunt-nw-builder/files/478360/test.txt)\r\n"}}
{"actor":{"display_login":"leknoppix"}}