Do you have any other generated protobufs in this TS repo? If so, the “default” root namespace might be clashing. In which case the fix would be adding --root rezaxd
As I said I followed that document and the repo that related to this document (= the repo that u send me the link of it).
Everything is same, except .proto file and I just declared 2 messages. And weird thing for me is that I can do everything json-module.js in node repl without any errors (I don’t know said that maybe it helps).
I would try adding root to pbjs anyway, just to check. Not sure what the issue is, but I’d be happy to take a look at your repo, if you can share it. I’m @lorensr on GH.
That .proto should be fine. If you can reproduce, I can look into it more—either taking out all the proprietary stuff from your repo, or modifying the sample to be more like your repo until you get the error.