JSX -> JS dist-modules issue
See original GitHub issueHi! I really like this project. I’m attempting to use it in an educational workshop tomorrow but I’m stuck.
I’m running I keep running into an issue where my dist-modules are attempting to require .jsx files, but the compiled files in dist-modules has .js extensions resulting in an error.
This is strange to me because the docs compile and run fine, and everything else is great. But when I install the package into another project such as create-react-app it results in the aforementioned errors with JS/JSX
Here are some screenshots

And here is a link to my test repo https://github.com/richattack/testjam
This is my first attempt at making an external component library. I’ve been debugging this issue for weeks not sure what the problem but I believe it to be a webpack or babel related issue.
Thanks!
Rich
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (5 by maintainers)

Top Related StackOverflow Question
Ok, cool. Especially the webpack book might have relevant content.
Feel free to reach out at gitter.
Thanks! That works perfectly. Just tested it. I will check out your presentations too. The topic is around developer workflow, component libraries and rapid prototyping. Thank you so much again. I will follow up later to tell you how the workshop goes.