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

Object.assign is undefined in jsonSass.js #1

Closed
tomaash opened this issue Apr 18, 2015 · 3 comments
Closed

Object.assign is undefined in jsonSass.js #1

tomaash opened this issue Apr 18, 2015 · 3 comments

Comments

@tomaash
Copy link

tomaash commented Apr 18, 2015

I'm using iojs v1.7.1. When running make watch on flummox docs, something fails in es6 compilation

=> make watch
mkdir -p sass/dependencies/ && node_modules/.bin/json-sass -i lib/shared/theme.js \
    | sed '1s/^/$theme: /' \
    > sass/dependencies/_theme.scss
/Users/tom/Code/Sandbox/flummox/docs/node_modules/json-sass/lib/jsonSass.js:14
  var options = Object.assign({}, DEFAULTS, options);
                       ^
TypeError: undefined is not a function

I can be worked around by removing Object.assing from jsonSass.js:14, for example using this code

  // var options = Object.assign({}, DEFAULTS, options);
  var options = JSON.parse(JSON.stringify(options));
  options.prefix = options.prefix || "";
  options.suffix = options.suffix || ";";

Not sure in which part of flummox I should report this, I'm just starting. So I put it here. Sorry for my laziness, it might be my environment problem as well.

@tomaash
Copy link
Author

tomaash commented Apr 18, 2015

Is this issue related? babel/babel#377

@Vestride
Copy link

I downgraded to ~1.2.1 (before it was rewritten in ES6) and it's working for me.

@acdlite
Copy link
Owner

acdlite commented May 4, 2015

Sorry, forgot to close this, but it's fixed in 1.3.5

@acdlite acdlite closed this as completed May 4, 2015
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