Closed
Description
When running gulp sassdoc
, with this gulpfile:
var gulp = require('gulp');
var sassdoc = require('sassdoc');
gulp.task('sassdoc', function() {
gulp.src(['./src/static/scss/**/*.scss', './src/components/**/*.scss'])
.pipe(sassdoc({ dest: './dist/docs/sassdoc' }))
});
This is the error I get:
/Users/<redacted>/node_modules/sassdoc/dist/sorter.js:12
return compare(a.group[0].toLowerCase(), b.group[0].toLowerCase()) || compare(a.file.path, b.file.path) || compare(a.context.line.start, b.context.line.start);
^
TypeError: Cannot read property 'start' of undefined
at /Users/<redacted>/node_modules/sassdoc/dist/sorter.js:12:134
at Array.sort (native)
at Object.sort [as default] (/Users/<redacted>/node_modules/sassdoc/dist/sorter.js:11:15)
at Parser.postProcess (/Users/<redacted>/node_modules/sassdoc/dist/parser.js:70:31)
at DestroyableTransform.flush [as _flush] (/Users/<redacted>/node_modules/sassdoc/dist/parser.js:146:21)
at DestroyableTransform.<anonymous> (/Users/<redacted>/node_modules/sassdoc/node_modules/readable-stream/lib/_stream_transform.js:135:12)
at DestroyableTransform.g (events.js:260:16)
at emitNone (events.js:72:20)
at DestroyableTransform.emit (events.js:166:7)
at finishMaybe (/Users/<redacted>/node_modules/sassdoc/node_modules/readable-stream/lib/_stream_writable.js:371:12)
I'm using sassdoc version 2.1.16. I can provide additional debug info if that's required.
Metadata
Metadata
Assignees
Labels
No labels