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

Failed: TypeError: Cannot read property 'parseArgs' of undefined #102

Open
ufairiya opened this issue May 12, 2016 · 3 comments
Open

Failed: TypeError: Cannot read property 'parseArgs' of undefined #102

ufairiya opened this issue May 12, 2016 · 3 comments

Comments

@ufairiya
Copy link

blessc style.css
Failed: TypeError: Cannot read property 'parseArgs' of undefined
TypeError: Cannot read property 'parseArgs' of undefined
at parseCliArgs (/usr/local/lib/node_modules/bless/lib/parse-cli-args.js:67:44)
at cliExeute (/usr/local/lib/node_modules/bless/lib/cli.js:29:42)
at Object. (/usr/local/lib/node_modules/bless/bin/blessc:7:1)
at Module._compile (module.js:398:26)
at Object.Module._extensions..js (module.js:405:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Function.Module.runMain (module.js:430:10)
at startup (node.js:141:18)
at node.js:1003:3

@jonscottclark
Copy link

The website is outdated.

You must run the following commands:

$ blessc count style.css to check your file

or

$ blessc chunk style.css to split your file into chunks

@tyaginaitik
Copy link

Hi,
I have use this command but not working, thrown error
example:-
lessc custom-bootstrapadmin.less | blessc chunk ../../css/appV2admin.css

Can you please help me out.

@jonscottclark
Copy link

@tyaginaitik You're trying to pipe the output of lessc to blessc, and I think bless requires a filename as a parameter instead of reading from STDIN. Run this as two commands:

lessc custom-bootstrapadmin.less && blessc chunk custom-bootstrapadmin.css

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