horizon-games / remix-app

Ethereum Remix Solidity IDE, electron edition
195 stars 41 forks source link

error loading compiler in latest version #15

Closed subtly closed 5 years ago

subtly commented 5 years ago

The error below is logged in electron console when trying to use the latest version. It happens when js tries to dynamically load solc and a similar issue affects the old version. Looks to be something with electron based on trace. I think this is an issue w/remix but posting issue here just in case someone else is working to get it working in electron again.

cc @yann300

Uncaught Error: Cannot find module 'solc'
    at Module._resolveFilename (internal/modules/cjs/loader.js:602)
    at Function.Module._resolveFilename (/home/.../remix-app/node_modules/electron/dist/Electron.app/Contents/Resources/electron.asar/common/reset-search-paths.js:35)
    at Function.Module._load (internal/modules/cjs/loader.js:528)
    at Module.require (internal/modules/cjs/loader.js:658)
    at require (internal/modules/cjs/helpers.js:20)
    at o (app.js:1)
    at app.js:1
    at onInternalCompilerLoaded (app.js:200574)
    at app.js:200753
subtly commented 5 years ago

I think this maybe fixed now, see: https://github.com/ethereum/remix/pull/1172