-
Notifications
You must be signed in to change notification settings - Fork 129
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
"Failed to minify code" (create-react-app) #27
Comments
Hi @haakonmt, thank you for posting your issue. I personally use nfc-pcsc inside an Electron app which is built using Webpack and it works great, but it requires some config (in some cases):
I hope you will be able to make it work with these info. 🙂 However, if you get stuck, you can create repo with your code (it can be just a minimal example), where the issue occurs and I'll take a look at it (clone, install, run). Hope it helps. |
Thank you for the fast response! Adding the library to webpack's externals seems like a perfectly good solution, but I forgot to add that I would try to avoid ejecting if possible. Nevertheless, I found a solution! By using |
@haakonmt How did you managed to get this running with React without eject ? |
@Ionut-Milas Wherever you want! For instance in
Then at the top of |
Thanks a lot ! |
I'm trying to use this library together with resin.io's electron + react template, which uses create-react-app.
When I run the build script it fails telling me that this library (specifically
dist/Reader.js
) can't be minified and directs me to this link, which suggests filing an issue on the dependency in question, so here I am.Native node modules + create-react-app + electron is asking for trouble, I know, but maybe you have some suggestions?
The text was updated successfully, but these errors were encountered: