-
Notifications
You must be signed in to change notification settings - Fork 46
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
I get undefined [undefined] - how I can debug it #44
Comments
Hmm no idea what's going on here, I'm not a webpack user and they look like errors from webpack. Could you try using the plugins individually, or even just disabling all rucksack features to try and narrow down the cause of the problem? |
Yes, I've tried that, the same. But all the plugins is yours, so maybe some function you are using causing this problem. This happens only on file with @imports |
that would suggest an issue with |
postcss-import is working fine, I'm starting to receive these output only if the rucksack in the chain of plugins. I can make screen recording if it helps. |
hmm okay. Will try and look into it soon. Is the error just noise, or is it actually breaking your build/rucksack? Just to get an idea of the priority for this one. |
Hi, I got the same problem with you @kbytin 'use strict';
import gulp from 'gulp';
import lost from 'lost';
import atImport from 'postcss-import';
import simpleVars from 'postcss-simple-vars';
import nested from 'postcss-nested';
import mixins from 'postcss-mixins';
import propertyLookup from 'postcss-property-lookup';
import rucksack from 'rucksack-css';
import cssnext from 'postcss-cssnext';
import gulpLoadedPlugins from 'gulp-load-plugins';
const $ = gulpLoadedPlugins();
// Styles workflow
gulp.task('styles', ['css:lint'], () => {
const processors = [
lost, atImport, mixins, simpleVars, nested, propertyLookup,
rucksack({ autoprefixer: false, fallbacks: true }),
cssnext({ warnForDuplicates: false, browsers: ['last 2 versions', '> 1%', 'ie >= 9'] }),
mqpacker, csswring({ removeAllComments: true })
];
return gulp.src('./src/styles/main.css')
.pipe($.sourcemaps.init())
.pipe($.postcss(processors))
.pipe($.sourcemaps.write('.'))
.pipe(gulp.dest('./dist/css'));
}); Output of my workflow wsk (master*) » ./node_modules/.bin/gulp styles
[19:11:11] Requiring external module babel-register
[19:11:13] Using gulpfile ~/Sites/wsk/gulpfile.babel.js
[19:11:13] Starting 'styles'...
src/styles/main.css
undefined [undefined]
undefined [undefined]
undefined [undefined]
undefined [undefined]
src/styles/main.css
undefined [undefined]
undefined [undefined]
undefined [undefined]
undefined [undefined]
[19:11:14] Finished 'styles' after 601 ms I got 4 lines |
So this comes from their recent addition of https://github.com/simplaio/rucksack/blob/master/index.js#L25 About to submit a PR to disable this by default and enable it with an option, because it's super annoying. |
Hi, thanx for the awesome too 👍 l.
I'm receiving this error, but everything is compiling
I'm using it on another project, and have no problems.
Here is my config, I've switched plugin one by one and on Rucksack error appears again:
style.sss
The text was updated successfully, but these errors were encountered: