Closed podenphant closed 6 years ago
what kind of minifier you are using? do you have a repo of your configurations?
I'm having the same issue. I used react-create-app to initialize the project and installed flickity using npm. Perhaps this might help (apparently code has to be compiled to ES5 before publishing to npm): http://bit.ly/2tRViJ9 Hoping that we can solve this without ejecting.
@zengoma For a quick fix you can go to your node_modules/react-flickity-component/package.json
, and remove this line "module": "./src/index",
.
@yaodingyd Thank you for the quick response. That certainly did work, the production build runs without any issues now. You're a star!
thanks everyone, new version published to npm
When invoking 'yarn run build' this error occurs
"Failed to minify the code from this file:
"