Shopify / babel-plugin-graphql-js-client-transform

MIT License
6 stars 5 forks source link

Create-React-App Production does not Build #13

Open rizedr opened 6 years ago

rizedr commented 6 years ago

I have a modified react-scripts that includes this babel plugin and because of it by build fails, with the reason explained here.

You can find my version of create-react-app/react-scripts here - it changes the default folder from src to frontend & sets up this babel plugin.

Exact build output:

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

Failed to minify the code from this file: 

    ./node_modules/babel-plugin-graphql-js-client-transform/lib/index.js:34 

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

error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Also, please note that the storefront-api-examples/react-graphql-client fails to build as well because the babel plugin is missing for the production webpack config.

Banjerr commented 6 years ago

@rizedr what was the fix for this one? i'm still experiencing this same issue