Page 1 of 1

sass failure

Posted: 23 Nov 2018, 18:02
by paulkeogh
I am trying to run the command (from the documentation);

sass --update src/main/webapp/resources/ --sourcemap=none

I go to;

https://sass-lang.com/install and install sass using; npm install -g sass

This installs;

sass --version
1.15.1 compiled with dart2js 2.1.0

When I run the command I get;

Could not find an option named "sourcemap"

Then I try;

sass --update src/main/webapp/resources/ --no-source-map
--update is not allowed when printing to stdout.

And then I try;

sass src/main/webapp/resources/ --no-source-map
Unexpected exception:
NoSuchMethodError: method not found: 'length' on null


/usr/lib/node_modules/sass/sass.dart.js 12250:22 m1.eG
/usr/lib/node_modules/sass/sass.dart.js 12252:28 m1.aC
/usr/lib/node_modules/sass/sass.dart.js 11965:14 hd.bU
/usr/lib/node_modules/sass/sass.dart.js 3981:36 <fn>
/usr/lib/node_modules/sass/sass.dart.js 1453:71 w0.a
/usr/lib/node_modules/sass/sass.dart.js 8365:23 w0.$2
/usr/lib/node_modules/sass/sass.dart.js 8360:25 uC.$2
/usr/lib/node_modules/sass/sass.dart.js 9275:42 tz.vf
/usr/lib/node_modules/sass/sass.dart.js 9277:32 tz.ve
/usr/lib/node_modules/sass/sass.dart.js 8583:46 ic.up

I give up ! - please advise.

Re: sass failure

Posted: 23 Nov 2018, 19:21
by paulkeogh
I finally got it to work with;

/root/dart-sass/sass src/main/webapp/resources:src/main/webapp/resources --no-source-map

This is with the standalone sass install, *not* the npm one.

Re: sass failure

Posted: 26 Nov 2018, 08:49
by mert.sincan
Thanks a lot, @paulkeogh ;)

Re: sass failure

Posted: 08 Dec 2018, 11:54
by mekhaba
Yes I got the same sent error, and when I used your solution It's OK.
Thanks.

Re: sass failure

Posted: 10 Dec 2018, 08:10
by mert.sincan
Thanks a lot for the update!

Re: sass failure

Posted: 06 Apr 2019, 17:32
by cgonul
paulkeogh wrote:
23 Nov 2018, 19:21
I finally got it to work with;

/root/dart-sass/sass src/main/webapp/resources:src/main/webapp/resources --no-source-map

This is with the standalone sass install, *not* the npm one.
I think the document should be updated accordingly.

Re: sass failure

Posted: 17 Apr 2019, 08:19
by mert.sincan
Of course, I'll update doc asap.

Best Regards,

Re: sass failure

Posted: 29 Nov 2020, 12:13
by bkatapa
"sass --update src/main/webapp/resources/ --no-source-map"

This command worked for me after installing sass with npm

Re: sass failure

Posted: 02 Dec 2020, 09:30
by mert.sincan
Thanks a lot, @bkatapa ;)

Best Regards,