Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do I use with react js? #118

Open
MassMessage opened this issue Aug 7, 2021 · 1 comment
Open

How do I use with react js? #118

MassMessage opened this issue Aug 7, 2021 · 1 comment

Comments

@MassMessage
Copy link

MassMessage commented Aug 7, 2021

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?

@ericaskari
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants