[Ethereum] Could not find declaration module for file ‘solc’

ethereumjsjavascript

enter image description hereI was trying with a simple contract,when I do "node compile.js" in my windows cmd it throws an error.I was using vscode it showing error in const solc = require('solc'),I installed everything perfectly but I don't know why the error occurs.

Best Answer

Had the same issue .

  1. npm uninstall solc
  2. npm install --save solc@0.4.25
Related Topic