These are chat archives for Nethereum/Nethereum
var electionType = await contract.GetFunction("electionType").CallAsync<string>().Result
I get the same errors if I run npm run compile from the root folder.
As stated I am no great expert in this, but Juan has taken me through it once before so something might come back to me.
Are you able to start a debugging session in visual studio code? I run "Launch Extension" which is configured in the .vscode folder. I am guessing there's path magic required for the compilation to work.
@Nufflee - well npm run compile now works for me. I had to change a few typescript files in the node_modules\nethereum-codegen to fix the namespace issue. It's a workaround, like I said, these typescript files are code generated, so I haven't fixed the core issue yet. I'll need to discuss this with Juan when he returns - I'd imagine what we're doing here may not actually be necessary. But it may unblock you for the time being.
To get you going - you could download the nethereum-codegen folder below and replace your current folder (within ./node_modules).
The files I changed (from memory!):