We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Can't properly configure webpack with esbuild-loader. I'm getting error in enum.
Cannot read property 'MyProperty' of undefined. enum MyProperty { SomeEnum = 'screen_history', } const history = MyProperty.SomeEnum;
My webpack config:
{ test: /\.js$/, loader: 'esbuild-loader', options: { target: 'es2015', }, }, { test: /\.jsx$/, loader: 'esbuild-loader', options: { loader: 'jsx', target: 'es2015', }, }, { test: /\.tsx$/, loader: 'esbuild-loader', options: { loader: 'tsx', target: 'es2015', tsconfigRaw: require('./tsconfig.json'), }, }, { test: /\.ts$/, loader: 'esbuild-loader', options: { loader: 'ts', target: 'es2015', tsconfigRaw: require('./tsconfig.json'), }, },
The text was updated successfully, but these errors were encountered:
I added a test-case in #97 to demonstrate that TypeScript enums compile fine. Check out the test fixture here for a reference.
It seems your error is about something else since it reads:
Cannot read property 'MyProperty' of undefined.
So it seems you're trying to read the property MyProperty of some other variable.
MyProperty
If you're still running into this, send me a link to a minimal reproduction repo and I can take a look.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Can't properly configure webpack with esbuild-loader. I'm getting error in enum.
My webpack config:
The text was updated successfully, but these errors were encountered: