gantt-for-react icon indicating copy to clipboard operation
gantt-for-react copied to clipboard

Error when build

Open gravitano opened this issue 7 years ago • 2 comments

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.

gravitano avatar Aug 01 '18 07:08 gravitano

Please send issue on repo frappe-gantt. https://github.com/frappe/gantt/issues/94

hustcc avatar Aug 01 '18 08:08 hustcc

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.

Maskik avatar Sep 19 '18 12:09 Maskik