I am facing some issues with a grunt task named taskA
that was installed via npm. The task has a dependency on grunt-contrib-stylus, which is specified in the package.json file of taskA and installed successfully. However, when I run grunt default from the main Gruntfile.js, an error occurs.
Warning: Task "stylus" not found. Use --force to continue.
The solution to this issue seems to be requiring grunt-contrib-stylus in the main project. But I would prefer to find a way around this. Why is my task not utilizing the grunt-contrib-stylus module present in its node_modules folder?
taskA
module.exports = function(grunt) {
'use strict';
grunt.loadNpmTasks('grunt-contrib-stylus');
...
Main Gruntfile.js
...
grunt.loadNpmTasks('taskA');
...