question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

invalid member of stdlib

See original GitHub issue

screenshot 34 screenshot 35 when i am trying to run ‘node compile.js’ it its showing " (node:10152) V8: C:\Users\Akash\chat\node_modules\solc\soljson.js:3 Invalid asm.js: Invalid member of stdlib " and even when i run ’ npm run test ’ its showing an error " PS C:\Users\Akash\chat> node compile.js (node:10152) V8: C:\Users\Akash\chat\node_modules\solc\soljson.js:3 Invalid asm.js: Invalid member of stdlib PS C:\Users\Akash\chat> npm run test

chat@1.0.0 test C:\Users\Akash\chat mocha

(node:1432) V8: C:\Users\Akash\chat\node_modules\solc\soljson.js:3 Invalid asm.js: Invalid member of stdlib inbox 1) “before each” hook for “deploys a contract”

0 passing (115ms) 1 failing

  1. “before each” hook for “deploys a contract”: TypeError: (intermediate value).deploy(…).sent is not a function at Context.beforeEach (test\inbox.test.js:17:4)

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! chat@1.0.0 test: mocha npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the chat@1.0.0 test script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Akash\AppData\Roaming\npm-cache_logs\2018-12-29T20_20_39_579Z-debug.log PS C:\Users\Akash\chat> "
Can anyone give me a solution?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:34 (7 by maintainers)

github_iconTop GitHub Comments

7reactions
Eloneroncommented, Jan 13, 2022

Hey guys, for me changing the solidity compiler version solved the issue. I arbitrarily picked: npm install solc@0.4.26

4reactions
mando-devcommented, Jun 23, 2021

HEY guys I was able to figure out the issue for myself. Basically use node version 10.0.0 If this doesnt work then you prolly have a typo. But to use an old version of node , i first installed NVM-node version manager. Once you download that, on your terminal you can run “nvm use 10”. Just like that, that means you are trying to use node version 10. nvm should notify you that you are veriosn 10, after that u r good. if you get into trouble, message me at my webstie mandodev.com

Read more comments on GitHub >

github_iconTop Results From Across the Web

Invalid asm.js: Invalid member of stdlib - Stack Overflow
This can happen because of many reasons. If you are using remix ide then by default asm is disabled in chrome that could...
Read more >
Error : invalid asm.js : Invalid member of stdlib when executing ...
I am using Atom as IDE for writing smart contract using solidity. As soon as I execute node deploy.js, I get error as...
Read more >
What does this error mean? : r/learnprogramming - Reddit
It looks like you're calling JSON.parse("undefined");. Take a look at where that JSON came from. When it was serialized, some variable was ...
Read more >
Issue 8064 in v8: Invalid asm.js - Function use doesn't match ...
+sqrt()) on asm mode. Step to reproduce: function DiagModule(stdlib) { "use asm"; var sqrt = stdlib.Math.sqrt;
Read more >
(node:14808) V8 - Invalid member of stdlib - Bountysource
(node:14808) V8: PATH\node_modules\ttf2woff2\jssrc\ttf2woff2.js:3 Invalid asm.js: Invalid member of stdlib.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found