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

Module Not Working in Node.js #1

Closed
manuth opened this issue Dec 7, 2022 · 2 comments
Closed

Module Not Working in Node.js #1

manuth opened this issue Dec 7, 2022 · 2 comments

Comments

@manuth
Copy link

manuth commented Dec 7, 2022

I just tried to migrate from ts-nameof to this module.
However, I had to notice that this module does not work using Node.js.

Looks like Webpack is messing things up somehow...?
I get the following error:

ReferenceError: self is not defined
    at Object.<anonymous> (./node_modules/ts-nameof-proxy/dist/ts-nameof-proxy.js:3:3)

That said, the variable self is only defined in web browsers.

@PinkChampagne17
Copy link
Member

I'm sorry I only recently solved this problem, thank you very much for your feedback which was instrumental in helping me improve this package.

@manuth
Copy link
Author

manuth commented Feb 21, 2023

You're most welcome! Thanks for taking care 😄

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