-
-
Notifications
You must be signed in to change notification settings - Fork 171
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
Support for tsx as entry file #42
Comments
I suppose I have to modify the webpack config through |
We do support |
Hey @develar, I'm having this issue as well. I want to set my renderer entry point as And yeah, I have followed all the TypeScript instructions. EDIT: Before I forgot, here's the error I got:
|
@develar Actually, I just found a weird workaround that works: Have your actual app entry point at a different filename, something like import './app' And tsconfig:
|
I'm experiencing this same issue and thought of making an |
@knpwrd This is already fixed. Try renaming your entry point to |
I started a project with your current release - 2.0.1. Everything worked great until I followed instructions for adding typescript support. That worked fine until I went to convert my .jsx files to .tsx, and then I received errors in the build. The errors were resolved by adding the jsx:react option to the tsconfig.json as documented above. Therefore, I created a branch that adds this to the documentation. |
How should I go about getting this PR'ed ... should this issue be reopened, should I create a new issue? FWIW - here is my branch with the doc change: https://github.com/ChrisEdgington/electron-webpack/tree/document-typescript-jsx-support |
Thank you for this excellent project.
Is there any guide on how to configure a React project with typescript with electron-webpack?
The text was updated successfully, but these errors were encountered: