Recently, I wanted to start using Grunt to improve my development workflow. Although I had problems when Grunt is up and running. After creating the package.json file and the Grunt file.js I tried to run a simple test using grunt-karma with no luck.
All I get is a mistake
Loading "grunt-karma.js" tasks...ERROR
RangeError: Maximum call stack size exceeded
I am running node version 10.12 with grunt-cli and grunting versions 0.1.9 and 0.4.1 respectively.
Below is the file of my package with all the dependencies of my dev and my grunt file.
package.json
{ "name": "crudangular", "version": "0.0.1", "devDependencies": { "grunt": "~0.4.1", "karma": "~0.8.6", "grunt-karma": "~0.4.4", "phantomjs": "~1.9.1-0" } }
Gruntfile.js
module.exports = function(grunt){ grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), karma: { unit:{ configFile: 'karma.conf.js' } } }); grunt.loadNpmTasks('grunt-karma'); grunt.registerTask('default',['karma']); }
Any help would be greatly appreciated. Thank you in advance.
source share