Open 0mkara opened 3 years ago
Did the compiler support imports before?
I think NO it did not support node_modules
import before. Not sure about the Solidity
extension.
Just confirmed node_modules
imports work in JuanBlanco.solidity
extension.
Ok cool, that's a good thing to communicate.
Nothing to do here right?
No, we have to implement node_modules
support for the Remix compiler we have. So keeping it open for now.
Fixed in the new release 0.0.9. Imports are handled in the same way as Remix IDE.
I am also getting this error in the VS Code plugin v 0.0.12
Specifically when importing remote libraries.
eg.
import "@openzeppelin/contracts/token/ERC20/IERC20.sol";
In the Remix web app, it correctly copies the imported file and finds it at compile. But in VS Code, it downloads the file but can't find it in .deps/
Error description
Compilation failed when tried to import
openzeppelin
contracts from node modules. Compilation failed for both Solidity and Remix compiler.Error log