gantt-for-react
gantt-for-react copied to clipboard
Error when build
Hey,
I got errors when building react app that use this package. I know that react don't compile the code that not ES5. Can someone help me to fix it?
yarn run v1.7.0
$ cross-env REACT_APP_BUILD_ENV=production react-scripts build
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/frappe-gantt/src/svg_utils.js:9
Read more here: http://bit.ly/2tRViJ9
error Command failed with exit code 1.
Please send issue on repo frappe-gantt. https://github.com/frappe/gantt/issues/94
create-react-app Troubleshooting - It helps for me. You can import module as your component from src/ In this case babel will compile source code of frappe-gantt in right way.