Closed acailly closed 6 years ago
To others facing the same issue, the only way I've found to make my app work was to eject the configuration of create-react-app
and delete the UglifyJsPlugin
call from the webpack prod config.
Check https://github.com/ipfs/js-ipfs/issues/1321 for more info.
Trying to find a workaround for the issue https://github.com/ipld/js-cid/issues/38, I made a script to babelify every script that couldn't be parsed by webpack:
fix.js, click to expand
I just added
babel
as dev dependency (yarn add babel-cli --dev
) and run this script (node fix
).However, I still have an error:
I don't know the internal of ipfs (yet), so if anyone has an idea of what could cause this bug, I take it 😉