TypeError: Cannot read property 'toString' of undefined
When I try to run: node cssdoc.js and inside my JS file:
var Cssdoc = require('cssdoc');
Cssdoc({ inputDir: './dist/css', // directory with the css files outputDir: './build', // directory that will be created the page title: 'Trusted Insight' });
and I get this output. Output is here:
Reading file ./dist/css/shades.css ... /Users/ravidhiman/Projects/shades-project/node_modules/slug/slug.js:13 string = string.toString(); ^
TypeError: Cannot read property 'toString' of undefined
at slug (/Users/ravidhiman/Projects/shades-project/node_modules/slug/slug.js:13:20)
at Cssdoc.generateId (/Users/ravidhiman/Projects/shades-project/node_modules/cssdoc/index.js:123:10)
at Cssdoc.addComment (/Users/ravidhiman/Projects/shades-project/node_modules/cssdoc/index.js:108:16)
at Cssdoc.processFile (/Users/ravidhiman/Projects/shades-project/node_modules/cssdoc/index.js:70:10)
at Cssdoc.run (/Users/ravidhiman/Projects/shades-project/node_modules/cssdoc/index.js:48:10)
at new Cssdoc (/Users/ravidhiman/Projects/shades-project/node_modules/cssdoc/index.js:38:8)
at Cssdoc (/Users/ravidhiman/Projects/shades-project/node_modules/cssdoc/index.js:33:12)
at Object.