You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I'm trying to use request-network.js from a React app, and I am running into a problem with the minify setup. This is not a problem with the Request library per se, but it might be something that can be most easily fixed on your end. Running npm run build results in this error:
> [email protected] build /private/tmp/test/test
> react-scripts build
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/ipfs-api/src/utils/module-config.js:7
Read more here: http://bit.ly/2tRViJ9
The link suggests that publishing ES5 compiled versions of the code will resolve this.
Steps to reproduce:
create-react-app test-app
cd test-app
# Before installing the library the project builds ok
npm build
npm install @requestnetwork/request-network.js --save
npm install # Had to run install again to reinstall react-scripts
# Add the following to test-app/src/App.js:
import RequestNetwork, {Types} from '@requestnetwork/request-network.js';
# The build will now fail
npm run build
I have temporarily worked around this by disabling the minify step, but that leads to a 2MB JS bundle.
Is publishing ES5 compiled versions of the library something the team can do? JS is not really my area, so I'm not sure how much work is involved in this.
The text was updated successfully, but these errors were encountered:
Hi, I'm trying to use request-network.js from a React app, and I am running into a problem with the minify setup. This is not a problem with the Request library per se, but it might be something that can be most easily fixed on your end. Running
npm run build
results in this error:The link suggests that publishing ES5 compiled versions of the code will resolve this.
Steps to reproduce:
I have temporarily worked around this by disabling the minify step, but that leads to a 2MB JS bundle.
Is publishing ES5 compiled versions of the library something the team can do? JS is not really my area, so I'm not sure how much work is involved in this.
The text was updated successfully, but these errors were encountered: