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

Wont work with webpack production mode #10

Closed
kvvinokurov opened this issue Nov 5, 2019 · 4 comments
Closed

Wont work with webpack production mode #10

kvvinokurov opened this issue Nov 5, 2019 · 4 comments

Comments

@kvvinokurov
Copy link

In console error: nameof function is undefined

@IRCraziestTaxi
Copy link
Owner

Sorry for the delay in response to this issue.

There isn't a lot of information provided here. I have used this lib in production webpack (in an Angular app) in the past with no problems. Could you provide more steps to reproduce or even a small repro?

Thanks!

@weagle08
Copy link

weagle08 commented Dec 3, 2019

I have this problem as well (not using webpack) when minified for production when tsconfig target is set to es5, have to set target to es6 or higher for it to work even with correct polyfills. This should not be a problem unless you have to support IE11 or older.

Beej126 added a commit to Beej126/ts-simple-nameof that referenced this issue Dec 17, 2019
@egorpavlikhin
Copy link

Unfortunately in Angular the return looks like this
AClass extends _CommsPlan__WEBPACK_IMPORTED_MODULE_0__["BClass"]

IRCraziestTaxi added a commit that referenced this issue May 19, 2020
fix for issue #10, webpack prod build

Went ahead and pushed to the contributor's branch due to extensive period of inactivity. Everything is good to go! Thank you for getting us in the right direction @Beej126! :)
@IRCraziestTaxi
Copy link
Owner

Terribly sorry for the extra long delay in activity on this.

Fixed in 1.3.0! :)

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

4 participants