Weakky / ra-data-opencrud

A react-admin data provider for Prisma and GraphCMS
MIT License
159 stars 45 forks source link

fails react-scripts build #15

Closed mateodelnorte closed 6 years ago

mateodelnorte commented 6 years ago

Hi there. Thanks for making this module.

I'm trying to do a production build of my react-admin app using ra-data-opencrud, but it's failing because the package is not being transpiled to ES5 before publishing.

npm run build

> home@0.0.0 build /Users/x/development/y/web/home
> react-scripts build

Creating an optimized production build...
Failed to compile.

Failed to minify the code from this file:

    ./node_modules/ra-data-opencrud/lib/utils/getFinalType.js:7

Read more here: http://bit.ly/2tRViJ9

Can you please transpile your code to ES5 and publish so common build tools don't bork on it?

Thanks!

Weakky commented 6 years ago

This should now be fixed. If it is still an issue for you, please, don't hesitate to re-open the issue, or to submit other feedbacks.

Thanks a lot 🙏

mateodelnorte commented 6 years ago

Works! Thanks!