I tried running
solcjs --standard-json
and the following output was produced:
node:fs:208
let mode = stats[1];
^
TypeError: Cannot read properties of undefined (reading '1')
←[90m at isFileType (node:fs:208:19)←[39m
←[90m at Object.readFileSync (node:fs:456:16)←[39m
at Object.<anonymous> (C:\Users\sriva\AppData\Roaming\npm\node_modules\←[4msolc←[24m\solcjs:128:18)
←[90m at Module._compile (node:internal/modules/cjs/loader:1101:14)←[39m
←[90m at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)←[39m
←[90m at Module.load (node:internal/modules/cjs/loader:981:32)←[39m
←[90m at Function.Module._load (node:internal/modules/cjs/loader:822:12)←[39m
←[90m at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12)←[39m
←[90m at node:internal/main/run_main_module:17:47←[39m
The "^" isn't correctly placed in the above text; it was just below "[" in "let mode = stats[1];"
What's wrong here? solcjs --abi
and solcjs --bin
work perfectly well.