-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error: Cannot find module './fetch.node' #1183
Comments
I'm running into this error as well. Unrelated, but are you using w3up inside server actions @Honour-d-dev? Care to share any code? |
Yeah , i am using it inside a server action and i finally got it working(my bad for not posting a solution) i installed ipfs-utils then updated my next.config.js file with /** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
serverComponentsExternalPackages: ["ipfs-utils"],
},
};
module.exports = nextConfig; initially though i had to manually resolve the require statement in the module.exports = require('native-fetch') & module.exports = require('./fetch.node') respectively , before finding the next.js configuration. |
Amazing, will try this out. Thank you. |
Also curious if you'd share how you're instantiating a client given most of the example code uses top-level awaits. Here is what I've written so far. https://gist.github.com/salieflewis/bbba37daba7acd0edff39ff32e32a72d cc: @Honour-d-dev |
This has been resolved in |
huge thanks to @gobengo for digging into this! |
i'm using w3up-client in a Next.js app on the server for delegating capabilities to the frontend users (i.e thats the delegation model from the docs i believe)
and i keep getting this error
The text was updated successfully, but these errors were encountered: