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
gulp-less minor dependency on less introduce : Source map bug introduced in less 2.7.0 #237
Comments
I'm having the same issue. Your plugin is pulling the latest less 2.7.0 which is currently broken. Changing your project so that it references 2.6.1 will bypass the issue. |
Commenting out reference to gulp-source maps in the gulp script is the quickest way to bypass the 2.7.0 issue. e.g. pipe(sourcemaps.init()) pipe(sourcemaps.write('./')). |
The best way would be if gulp-less had the option to pass a custom reference to the less module, like gulp-typescript allows it. That way we could all easily revert to less@2.6 const gulpLess = require('gulp-less')
const less = require('less')
gulp.src('app.less')
.pipe(gulpLess({less, paths: [__dirname + '/node_modules']}))
.pipe(gulp.dest('build')) |
We would really like to be able to pass less as an option to have better control over which version to use. const gulpLess = require('gulp-less');
const less = require('less');
gulp.src('app.less')
.pipe(gulpLess({
less: less
});
.pipe(gulp.dest('build')); Similiar to how gulp-typescript does it. However i guess it would be more correct and work even smoother if less was added as a peer dependency? For anyone having this problem now do a ...
"less": {
"version": "2.6.1",
"from": "less@>=2.6.1 <2.7.0",
"resolved": "https://registry.npmjs.org/less/-/less-2.6.1.tgz",
"dependencies": {
... Then do a clean install |
Ran into this today, I too ended up doing what @leighgordy suggested. |
^ Ditto! Thanks @oBusk |
This should have been fixed with a |
Related?
|
Yup @johnkors , I had the same issues yesterday with boostrap |
Hi
I'm stucked with a less bug :
_ Error in plugin 'gulp-less'
Message:
Invalid mapping: {"generated":{"line":190,"column":2},"source":".../bootstrap/less/print.less","original":{"line":1,"column":null},"name":null} in file undefined line no. undefined
Details:
lineNumber: undefined
fileName: undefined_
I think that you should not reference minor version changes in your package.json for less dependency.
If there are some bugs in dependencies like this one less/less.js#2896 we can't use a previous minor version of gulp-less with a previous less minor version.
You should probably release a gulp-less 3.1.x to point to a less ~2.6.x and upgrade minor of gulp-less when a less minor is released.
The text was updated successfully, but these errors were encountered: