ts-nameof icon indicating copy to clipboard operation
ts-nameof copied to clipboard

How do I use with react js?

Open MassMessage opened this issue 4 years ago • 1 comments

I did install and declared it as global function, like below. However, when I went to use it, I get an undefined symbol. What am I missing? do I still need to import it beside making it global? I'm also new to react js.

installed with npm install ts-nameof @types/ts-nameof --save-dev and marked as global with npm install @types/ts-nameof --save-dev

UPDATE: it seems I do have to use ttypescript? does this mess up with tsconfig.json somewhat?

MassMessage avatar Aug 07 '21 22:08 MassMessage

if you are willing to use nx or are using nx for your project. I found an easy way to do all this: https://github.com/nrwl/nx/issues/4985

ericaskari avatar Aug 12 '21 08:08 ericaskari