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

Cannot compile any Sass (data or file) #642

Closed
NickRimer03 opened this issue Apr 4, 2019 · 1 comment
Closed

Cannot compile any Sass (data or file) #642

NickRimer03 opened this issue Apr 4, 2019 · 1 comment

Comments

@NickRimer03
Copy link

Hello there!
I'm trying to parse any sass using your module with no success.
I'm also using webpack.

import sass from "sass";

const sassStr = `$colors: (red, green, blue);
$sizes: (
  big: 100,
  small: 50
);

@each $color in $colors {
  .#{$color} {
    background-color: $color;
  }
}

@each $size, $value in $sizes {
  .#{$size} {
    width: $value + px;
    height: $value + px;
  }
}`;

// sass.renderSync({ file: "./test.scss" });
sass.renderSync({ data: sassStr });

First of all I'm getting this warning in console:

WARNING in ./node_modules/sass/sass.dart.js 13:15-22
Critical dependency: require function is used in a way in which dependencies cannot be statically extracted

Than an error in browser console:

Uncaught Error: NoSuchMethodError: method not found: 'M' on null

Very interesting that using file property instead of data makes another error:

Uncaught Error: RangeError: Value not in range: 18

WAIDW? I just wanna the result of normal CSS. Your module seems to be the most alive and active.

@nex3
Copy link
Contributor

nex3 commented Apr 4, 2019

Duplicate of #25. Dart Sass doesn't currently support running in the browser.

@nex3 nex3 closed this as completed Apr 4, 2019
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

2 participants