I was also having issues with this and I used the example provided above while running the codegen command in my terminal and it worked, thanks!