bigchaindb / js-bigchaindb-driver

Official BigchainDB JavaScript driver for Node.js and the browser
https://docs.bigchaindb.com/projects/js-driver/en/latest/usage.html
Apache License 2.0
216 stars 92 forks source link

Failed to minify bigchaindb-driver using react-scripts build #233

Open noeRls opened 6 years ago

noeRls commented 6 years ago

Hi, I have the following error when i'm trying to build my react app:

Failed to minify the code from this file:
        ./node_modules/bigchaindb-driver/dist/browser/bigchaindb-driver.cjs2.min.js:25:24793
Read more here: http://bit.ly/2tRViJ9

You can reproduce it by doing

create-react-app .
npm install
npm install bigchaindb-driver

Add the folowing line in App.js

import BigchainDB from "bigchaindb-driver"

Then run react-scripts build

Thanks