-
Notifications
You must be signed in to change notification settings - Fork 94
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
path.replace is not a function #360
Comments
I cannot reproduce on Linux; so I'll need you to help me debug this. If you edit Lines 61 to 67 in 453aaec
|
This is the output that I have got after following your instructions. [ 10, "versions'", 'css/style.concat.css' ] |
My bad, I should have seen that from just looking at your initial post. Your problem is that you're using single quotes around Also, you'll want to delete |
Note to self: perhaps should cast to string before running through slash to give a more intelligent error message in this case. |
It works when I Replaced single quotes with doubles quotes with escape characters as mentioned by you. Thank you so much for the solution. |
If a number is passed as a positional argument, yargs interprets it as a JS Number, and slash tries to call .replace() on it, which fails. This ensures slash only gets strings passed to it. Refs #360 (comment)
When I try to to prefix a css using the command
postcss --use autoprefixer -b 'last 10 versions' style.concat.css -o css/style.prefix.css
, it throws following error.given below is the debug log file content
The text was updated successfully, but these errors were encountered: