Closed hatzipanis closed 9 years ago
Both the sass
and watch
tasks are missing. https://github.com/keystonejs/generator-keystone/blob/master/app/templates/Gruntfile.js#L33 Must've been an oversight. @hatzipanis if you implement the missing tasks please push them upstream.
Hmm, still getting my head around Grunt @morenoh149 . Aren't the sass
and watch
tasks being called in from sass.js and watch.js respectively? watch
is working fine too. I feel like we're missing the Grunt plugin? What should we be using here to compile our Sass?
take a look at https://github.com/keystonejs/generator-keystone/blob/master/app/templates/_package.json which task runner did you choose during the generator process? also https://www.npmjs.com/package/load-grunt-tasks
I didn't realize the tasks were in the grunt
directory. And you're sure the watch task runs fine? perhaps grunt-load-tasks can't find sass.js
perhaps grunt-load-tasks can't find sass.js
That's what I thought but that wouldn't be consistent with the the other files which seem to be working fine.
In the generator _package.json we don't include any Grunt plugins to match sass
to. Installing sass-grunt fixes the errors and compiles correctly.
Not sure if I've gone about this the right way so maybe yourself and others can weigh in on this solution.
Closed by #132
jit-grunt: Plugin for the "sass" task not found. If you have installed the plugin already, please setting the static mapping. See https://github.com/shootaroo/jit-grunt#static-mappings
Warning: Task "sass" failed. Use --force to continue.
SOLVED:
npm install grunt-sass
i have the same problem when i work on a big website , please if any one know what is exactly the problem mean because the error doesnt have that much info
I generated a new Keystone project using Sass but received this error after I ran
grunt serve
and re-saved _variables.scssEverything, to me, looks normal and Grunt should be running fine. And I couldn't find any other related issues here. Any ideas?