Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The implementation option must be passed to the Sass task #156

Closed
EgidioCaprino opened this issue Jun 27, 2018 · 15 comments · May be fixed by acima-credit/spectacle#2 or Ometria/spectacle#2
Closed

Comments

@EgidioCaprino
Copy link

EgidioCaprino commented Jun 27, 2018

nvm use 8.10
npm install spectacle-docs
./node_modules/.bin/spectacle swagger.yml

produces

Running "sass:foundation_scss" (sass) task
Fatal error: The implementation option must be passed to the Sass task.

swagger.yml reports no error on editor.swagger.io.

@NordicGamer
Copy link

Hello! Exact same problem. Have you found any solution?

@pablomarambio
Copy link

Same here 😢
Travis log of the error has more info.
Do you have a fix?

@smishmash
Copy link

smishmash commented Jun 28, 2018

I have the same problem. This is recent, probably due to a bug in a dependency. I have an older docker image, and an older install on my mac, that works as expected. Attempting to install the software at a new location produces this error.

Update: grunt-sass (https://github.com/sindresorhus/grunt-sass) had 3.0 released 2 hours before this issue was reported. That's the most likely culprit, especially in light of the error message.

@jurgob
Copy link

jurgob commented Jun 28, 2018

I have the same problem

@slide13
Copy link

slide13 commented Jun 29, 2018

smishmash is right. I changed grunt-sass to 2.1.0 in dependency and it worked

@offero
Copy link

offero commented Jun 29, 2018

It's the only dependency that has a "*" for a version number. This is why you don't do that.

@TheIDCo-ScottLeckie
Copy link
Contributor

TheIDCo-ScottLeckie commented Jun 29, 2018

+1
Changing the dependency to "2.1.0" in packages.json and "npm link" allowed me to work around.
Pull request logged

@auscaster
Copy link
Member

Hi all, thanks for the PR it was just merged in.

I'll look at updating spectacle to grunt-saas 3.0 today to see if we can fix outstanding issue #114

auscaster added a commit that referenced this issue Jul 1, 2018
@lorem--ipsum
Copy link

Just faced the same problem today and solved it by adding the implementation to the sass options in my grunt file:

const sass = require('node-sass');

require('load-grunt-tasks')(grunt);

grunt.initConfig({
	sass: {
		options: {
			implementation: sass,
			sourceMap: true
		},
		dist: {
			files: {
				'main.css': 'main.scss'
			}
		}
	}
});

@relair
Copy link

relair commented Jul 5, 2018

@lorem--ipsum This solution works, in my case I needed to add 'node-sass' to my package.json and install it for it to work, but its nice to have it working with latest version.

@auscaster
Copy link
Member

auscaster commented Jul 5, 2018 via email

@medmin
Copy link

medmin commented Aug 21, 2018

@auscaster No. I have to add the "implementation: sass," to fix this problem.

It's 2018.8.21 today.

@codeoriginator
Copy link

Yes, I face the same issue with the latest.

nylen added a commit to ClassicPress/ClassicPress that referenced this issue Oct 5, 2018
@arthurlacoste
Copy link

I have the same issue

@tradingbills
Copy link

Todays date: Sat Mar 23 20:03:07 PDT 2019
Got handed an old Gruntfile.js and had to use the implementation-fix above from lorem--ipsum and also added the
npm i -D node-sass grunt-sass
and it finally worked

the-hotmann added a commit to InvoicePlane/InvoicePlane that referenced this issue Jan 1, 2020
Change version from "grunt-sass" to "^2.1.0" as "^3.1.0" is not compatible yet.

If on version "^3.1.0" "yarn run grunt" will error to:

Running "sass:build" (sass) task
Fatal error: The implementation option must be passed to the Sass task

Same Issue as sourcey/spectacle#156
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet