Fatal error: undefined is not a function
leknoppix opened this issue · comments
Hello,
For 2 days I desperately try to use this grunt module.
My file Gruntfile.js
'use strict';
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
nwjs: {
options: {
version: '0.3.0',
buildDir: './dist', // Where the build version of my NW.js app is saved
platforms: ['win', 'linux'], // These are the platforms that we want to build
flavor: 'normal'
},
src: ['rotateur/**/*'] // Your NW.js app
},
});
grunt.loadNpmTasks('grunt-nw-builder');
grunt.registerTask('default', ['nwjs']);
};
My package.json:
{
"name": "Rotateur",
"author": "leknoppix",
"description": "Application en node Webkit pour retourner des images sans outil graphique",
"version": "0.3.0",
"devDependencies": {
"grunt": "^1.0.1",
"grunt-cli": "^1.2.0",
"grunt-nw-builder": "latest"
}
}
And my package.json present in the folder rotation:
{
"name": "Rotateur",
"main": "index.html",
"description": "Application en node Webkit pour retourner des images sans outil graphique",
"version": "0.3.0",
"window": {
"toolbar": false,
"height": 800,
"width:": 1000,
"frame": true,
"icon": "icons/logo.png"
},
"dependencies": {
"fs": "0.0.1-security",
"image-preloader": "^1.1.1",
"jimp": "^0.2.27",
"mkdirp": "^0.5.1",
"path": "^0.12.7",
"piexifjs": "^1.0.0"
}
}
When I laught the command grunt nwjs, I get:
grunt nwjs
Running "nwjs:src" (nwjs) task
Fatal error: undefined is not a function
I do not understand what I'm doing wrong.
leknoppix
Activate the verbose, I get:
test.txt
In my ubuntu machine, it's impossible to compile.
But my problem is solve with debian!