Trying to compile solidity smart contract on windows using [email protected]. But the code breaks with the below error, and this happens only for the contracts in which import statements are there, other contracts load fine.
My import statement:
import "second.sol";
And the error in the console is:
soljson.js:1(function (exports, require, module, __filename, __dirname)
{ var Module;if(!Module)Module=(typeof Module!=="undefined"?Module:null)||
{};var moduleOverrides={};for(var key in Module){if(Module.hasOwnProperty(key))
{moduleOverrides[key]=Module[key]}}var ENVIRONMENT_IS_WEB=typeof window==="object";
var ENVIRONMENT_IS_WORKER=typeof importScripts==="function";
var ENVIRONMENT_IS_NODE=typeof process==="object"&&typeof
require==="function"&&!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_WORKER;
var ENVIRONMENT_IS_SHELL=!ENVIRONMENT_IS_WEB&&!ENVIRONMENT_IS_NODE&&!ENVIRONMENT_IS_WORKER;
if(ENVIRONMENT_IS_NODE){if(!Module["print"])
Module["print"]=functionprint(x){process["stdout"].write(x+"\n")};
if(!Module["printErr"])Module["printErr"]=function printErr(x)
{process["stderr"].write(x+"\n")};var nodeFS=require("fs");
var nodePath=require("path");Module["read"]=function read
(filename,binary){filename=nodePath["normaliz
Any suggestions on how import statement is to be written. I have tried with absolute path and by putting ./ as well, it just does not work.