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

Using less@1.3 #183

Closed
gandhiShepard opened this issue Aug 20, 2015 · 10 comments
Closed

Using less@1.3 #183

gandhiShepard opened this issue Aug 20, 2015 · 10 comments

Comments

@gandhiShepard
Copy link

Is it possible for me to use Gulp Less but run less@1.3? I'm trying to support a new project that can only be built with Less@1.3? If so, how do I make this config with this gulp plugin? Thanks!

@timtroup
Copy link

timtroup commented Sep 4, 2015

+1 I need to compile bootstrap 2.1.0 and this can only be built with less 1.3.3 AFAIK

PS: your contact address dev@plus3network.com just bounces

@cappslock
Copy link

I have this exact issue today. To the plugin author, I'd suggest removing less as a dependency entirely and allowing plugin users to supply their own less module.

I.e. as a user I would want to be able to do something like:

var less = require('gulp-less')(require('less')); // provide my own less version with a compatible API

Instead of:

var less = require('gulp-less'); // stuck with whatever version the plugin decides

@yocontra
Copy link
Member

yocontra commented Sep 9, 2015

Really this is an accord issue - all this library does is wrap accord. AFAIK accord has something for overriding versions, check their README for that info and report back if you have any trouble

@tbranyen
Copy link

tbranyen commented Nov 5, 2015

@contra not quite, this project has an explicit, locked dependency on less@2.5.1

I'm still investigating a clean way to support legacy less versions

@tbranyen
Copy link

tbranyen commented Nov 5, 2015

If you try:

var accord = require('accord')
accord.load('less', path.join(__dirname, 'node_modules/less'));

This will result in:

 throw new Error(name + " version " + version + " is not currently suppor
        ^

Error: less version 1.3.3 is not currently supported

@tbranyen
Copy link

tbranyen commented Nov 6, 2015

I've created a fork of this project that correctly supports 1.3.3 (but had to remove source maps). You can find it here: https://github.com/tbranyen/gulp-less-legacy

npm install gulp-less-legacy

@yocontra
Copy link
Member

yocontra commented Nov 8, 2015

This seems like an issue you should open on the accord repo, possibly even send a PR to them to add support for older versions of less

@Rob-ot
Copy link

Rob-ot commented Apr 27, 2016

Good news! NPM fixed this situation we're in with Peer Dependencies.

https://nodejs.org/en/blog/npm/peer-dependencies/

@zaibigits099
Copy link

You can run into this issue when you've installed gulp-less but not also less

npm install --save less

@wt812haaply
Copy link

npm install gulp-less@3.0.0 试试

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants