Module not found: Not found 'fs/promises', 'stream/web','util/types'
Unanswered
Peeman Arthur posted this in #help-forum
I cannot seem to be able to resolve this when running in production, coming from a package known as undici within hardhat, but although the package is fine, it cannot render when running due to the a browser issue. I need to resolve
37 Replies
Please can someone help me with these issues. Some few details here : roject :
https://github.com/ArthurBonsu/BlockDao
StackOverflow Issue: https://stackoverflow.com/questions/76235419/how-to-resolve-the-following-in-node-js-stream-fs-utils-persisting-even-after****
https://github.com/ArthurBonsu/BlockDao
StackOverflow Issue: https://stackoverflow.com/questions/76235419/how-to-resolve-the-following-in-node-js-stream-fs-utils-persisting-even-after****
this package.json is a thing of nightmares
first off, i would HIGHLY suggest you separate your HH repo from your website.
secondly, browser false flags still need to be set in webpack
Okay, that would be a start for the first one , for the second can you give me a file that contain the browser false flags from my repo
The package.json file has been on a bit of random changes so that explains it
@Peeman Arthur Okay, that would be a start for the first one , for the second can you give me a file that contain the browser false flags from my repo
i would wait until its separated. you dont need 95% of those
i think i have a total of 4 false flags in my sites that have wallet connectivity
i would also suggest looking into viem/wagmi instead of ethers
ethers been screwing devs over for like a year now haha
(you keep ethers in the HH repo, just not in the site repo)
yeah, I will try to look into that perhaps later but the project is done in ethers trying to fix the stream issue r, trying my best to maintain HH in the project. I will try to separate the HH repo, (wish I knew how), I have known this as the standard approach. The problem is related to an undici package in HH as well as a Node.js browser issue, I am only trying to ensure the browser can get it all, both HH and Next.js
I will try to separate the two
@Peeman Arthur yeah, I will try to look into that perhaps later but the project is done in ethers trying to fix the stream issue r, trying my best to maintain HH in the project. I will try to separate the HH repo, (wish I knew how), I have known this as the standard approach. The problem is related to an undici package in HH as well as a Node.js browser issue, I am only trying to ensure the browser can get it all, both HH and Next.js
hh should not be in the repo tho. just because someone made a template doesnt make it a good idea
its NOT. a standard approach for anything production.
(ive been writing web3 sites for a few years now, and can say this with confidence)
Sure, I will be separating that then
Thanks a lot man
Let me sort that out and hit you back to grand stage 2
Okay HH removed from repository
oh so out of the package.json too. Wow, okay, you tell me what to do next. I will try to resolve that and hit you back Godwillling by Friday
Thanks for the help. I wonder how we will merge the two though HH and Next, you can let me know about that but I will do the what we have now.Thanks a lot
@Peeman Arthur <@184479429404262410> hardhat has been cleaned from package.json
im passing out but ill look it over when i wake up
Haha, sure. Thanks
Hello @DirtyCajunRice | AppDir . I hope you are having a great week already. Whener you hit a break sometime within the week, you can check up on my current state to see what I need to tackle next.Enjoy week
Haha, I guessed you have. Anyway hit me up whenever you hit a a free end. Thanks a lot for all that you do
@DirtyCajunRice | AppDir you can set me up tomorrow or today when you are available. Thannks