cssdoc icon indicating copy to clipboard operation
cssdoc copied to clipboard

TypeError: Cannot read property 'toString' of undefined

Open ravi-dhiman-tas opened this issue 8 years ago • 0 comments

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. (/Users/ravidhiman/Projects/shades-project/cssdoc.js:3:1) at Module._compile (module.js:571:32) at Object.Module._extensions..js (module.js:580:10)

ravi-dhiman-tas avatar Mar 10 '17 10:03 ravi-dhiman-tas