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

require('sass.js') Thrown: 6439624 #108

Open
dsdenes opened this issue Nov 7, 2018 · 1 comment
Open

require('sass.js') Thrown: 6439624 #108

dsdenes opened this issue Nov 7, 2018 · 1 comment

Comments

@dsdenes
Copy link

dsdenes commented Nov 7, 2018

sass.js npm package throws error on require.

How to reproduce:

$ node -v
v8.12.0
$ npm i sass.js
+ sass.js@0.10.11
added 1 package from 3 contributors and audited 1 package in 1.089s
found 0 vulnerabilities
$ node
> try { require('sass.js') } catch (err) { console.log('sass.js: ' + err);}
sass.js: 6439624

Expected:
Not to throw exception

@rodneyrehm
Copy link
Member

I don't quite understand what's going on in the REPL. Things work fine when executed from file:

➜  echo "require('sass.js'); console.log('hello');" > index.js && node index.js
hello

I'm a bit lost why in the REPL the error 6439624 (type Number) is being thrown. The only reference google yields is this comment - so I suspect that somehow crypto isn't available in a way emscripten expects.

Since you're bringing the REPL into the mix… any idea what might be going wrong here?

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