Skip to content
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

throw new TypeError('Path must be a string. Received ' + inspect(path)); #134

Open
IrvingArmenta opened this issue Mar 22, 2017 · 3 comments

Comments

@IrvingArmenta
Copy link

Hello, just installed and tried to see how styledocco works but I keep getting this error:

"throw new TypeError('Path must be a string. Received ' + inspect(path));"

I'm using it with Gulp (gulp-styledocco), however, I also tried to use it directly on the command line and I keep getting that error.
This is the output I get from "gulp-styledocco"
styledocco --out ./build/css/ --name "Herdez" --no-minify /Users/krrrunch/Code/herdez-front/build/css/main.css

I'm pretty sure I installed it correctly with npm install -fg styledocco

this is my gulp function

gulp.task('styledocco',  function () {
  gulp.src('./build/css/*.css')
    .pipe(styledocco({
      out: './build/css/',
      name: 'Herdez',
      'no-minify': true
    }));
});

I know this is not the gulp-styledocco repository but I really think is a styledocco issue.

Any ideas?

@oZeca
Copy link

oZeca commented May 19, 2017

Having the same issue here.

I'm runing styledocco -n "sassdoc" sass, where "sass" is the folder with scss files.
And it throws:

ath.js:7
throw new TypeError('Path must be a string. Received ' + inspect(path));
^

TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.extname (path.js:1431:5)
at /usr/local/lib/node_modules/styledocco/cli.js:222:48
at Array.filter (native)
at /usr/local/lib/node_modules/styledocco/cli.js:221:37
at tryToString (fs.js:455:3)
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:442:12)

Help would be appreciated.
Thanks

@BenSpace48
Copy link

Same here, even with a simple use scenario such as styledocco -n "My Project" src

@BenSpace48
Copy link

Downgrading my Node version via NVM fixed this for me, I downgraded from 6.6.0 to 5.0.0 and it worked fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants