Closed pablomendezroyo closed 1 year ago
Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:
Finally, remember to use https://discuss.ipfs.io if you just need general support.
I managed to make it work by patching the library ipfs-utils
. Not sure what the issue is but my guess is that setting the lib to be exported in a let
var is not good. I've modified the files:
node_modules/ipfs-utils/src/fetch.js b/node_modules/ipfs-utils/src/fetch.js
node_modules/ipfs-utils/src/http/fetch.js b/node_modules/ipfs-utils/src/http/fetch.js
For anyone interested, checkout this commit https://github.com/dappnode/DNP_DAPPMANAGER/pull/1341/commits/37ac71b14d17ff4eb143da2760498a91e6d37435
i got same issue when i use next13 build app hope fix asap
Same issue when using NextJS 13.2.1 , ipfs-http-client 60.0.0
Same issue here with next 13.2.3 :/
Same issue, next 13.2.4
Issue still exists. Can someone give a solution or work around as this doesn't let us complete a functions.
js-IPFS is in the process of being deprecated, the replacement is Helia - please see the State of IPFS in JS post for a bit of background and the migration guide for how to port your app over.
You're using ipfs-http-client
- if you are talking to a Kubo node, please use kubo-rpc-client instead and open any issues there.
There are examples for using Helia with popular bundlers and frameworks, they have working config you can copy/paste so hopefully these are helpful:
If not, please open an issue on the examples repo for examples you'd like to see.
Ipfs dependencies on my project
Node JS app running on Docker container
Looks like the affected sub-dependency is
ipfs-utils
used byipfs-core-utils
used byipfs-http-client
See dependency subgraphSeverity:
Critical. NodeJS app crashes at runtime. App built with webpack
Description:
NodeJS app built with webpack
App crashes with the following error
Looks like the
fetch.node.js
from ipfs-utils cannot be found. See https://github.com/ipfs/js-ipfs-utils/blob/5faabb4b128d32fa095d64a1cdf04c4992cd4f15/src/http/fetch.js#L11Application should not crash
Steps to reproduce the error:
Create node app and build with webpack (
"webpack": "^5.52.0",
) and the followingwebpack.config.js