You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
_solidity-version is only mentioned once in wrapper.js, on line 36 which reads as follows
let version;
if ('_solidity_version' in soljson) {
version = soljson.cwrap('solidity_version', 'string', []);
}
else {
version = soljson.cwrap('version', 'string', []);
}
Hi @xx014939, in which browser are you testing? Chromium-based browsers seem to have a problem loading the wasm binary in the main thread. So you are currently required to use a web worker. You can see here: #627 (comment) an example of how to do it.
However, if you are using firefox, this should work:
Description
Hey guys, I have been trying to use solc in a React.js app for around a week now, and I can't get it to work!
I am importing solc using the following statements
import * as wrapper from 'solc/wrapper';
const solc = wrapper(window.Module);
However, upon compiling I get the following error in the browser
wrapper.js:10 Uncaught TypeError: Cannot use 'in' operator to search for '_solidity_version' in undefined
I've tried a number of ways around this, but none seem to work
Has anyone else had a similar issue?
Thanks
The text was updated successfully, but these errors were encountered: