keystonejs / generator-keystone

⚠️ Archived - Legacy KeystoneJS project generator for Yeoman
MIT License
335 stars 143 forks source link

Warning: Task "sass" not found. Use --force to continue. #99

Closed hatzipanis closed 9 years ago

hatzipanis commented 9 years ago

I generated a new Keystone project using Sass but received this error after I ran grunt serve and re-saved _variables.scss

>> File "public/styles/site/_variables.scss" changed.
Warning: Task "sass" not found. Use --force to continue.

Aborted due to warnings.

Everything, to me, looks normal and Grunt should be running fine. And I couldn't find any other related issues here. Any ideas?

morenoh149 commented 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.

hatzipanis commented 9 years ago

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?

morenoh149 commented 9 years ago

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

hatzipanis commented 9 years ago

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.

JedWatson commented 9 years ago

Closed by #132

FlavioTroja commented 4 years ago

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

Mano534 commented 4 years ago

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