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

Style files compiling to [object Object] #46

Open
Xaviju opened this issue Dec 15, 2014 · 9 comments
Open

Style files compiling to [object Object] #46

Xaviju opened this issue Dec 15, 2014 · 9 comments

Comments

@Xaviju
Copy link

Xaviju commented Dec 15, 2014

A fresh install after npm install

I run bfdocs --watch manifest.json

It works, but no styles are applied. When I look into my css files:

reset.css
[object Object]

I tried reinstalling less on npm but didn't worked.

@stephencarr
Copy link

I am seeing the same issue.

@craig-jennings
Copy link

I am also seeing this. It appears that the version of less used affects this.

@craig-jennings
Copy link

It seems like less@2.0.0 is the first version where this occurs. less@1.7.5 correctly compiles the less files

@craig-jennings
Copy link

Actually I think 82be58e may have fixed the issue. I was using a stale version of this repo but once I updated this problem went away.

@Donnerbart
Copy link

When is the next release planned?

@versedi
Copy link

versedi commented Jun 6, 2015

+1 looking forward to use it without problems!

@tkgreg
Copy link

tkgreg commented Sep 10, 2015

Still not working out of the box

@tkgreg
Copy link

tkgreg commented Sep 10, 2015

How to workaround this issue?

@racoco
Copy link

racoco commented Feb 16, 2017

I has the same issue with less (2.5.3) and beautiful-docs (1.0.3).

In node_modules/beautiful-docs/lib/generator.js. I modified the callback to pass not the css json object, but the value of the internal css property instead.

See line 312 of generator.js. Here is the change I made...

return less.render(data.toString(), function(err, css) {
//console.log("\n**** CSS OUTPUT: ", css ); console.log("\n"); // racoco
//return cb(err, target, css); // original code. BROKEN!
return cb(err, target, css.css); // racoco FIXES css output
});

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

7 participants