(prompt)> yarn run solidity-docgen --solc-module <point to solc version 0.7.4 binary>
SyntaxError: Unexpected token 'export'
Environment
node v 12.18.3, repros on node 9, 10, 11, 12, 13, 14, 15
"solidity-docgen": "^0.5.7",
contracts/ folder with several contracts with "pragma solidity =0.7.4;"
macos 10.15.7
Details
Looking around at this error generally it has to do with node not supporting ES6 syntax ("export") and using babel to transpile is a solution, but this seems overly complex, there must be something else going on
You’re not supposed to use a solc binary, it should be a path to a JavaScript solc module installed from npm. Take a look at the example in the changelog for version 0.5.6.
This is working in my clean test repo, now going to try to get to work in my main repo.
--solc-module=solc-module path to an alternative solc module
^^ this is what --help gives, maybe this could be explained in more depth for future people tripping over it