Skip to content
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

Module not found: Can't resolve 'fs' when using @irys /web-upload-solana #20

Open
nixjs opened this issue Jan 30, 2025 · 2 comments
Open

Comments

@nixjs
Copy link

nixjs commented Jan 30, 2025

I am using these packages on irys

"@irys/upload": "^0.0.14",
"@irys/upload-solana": "^0.1.7",
"@irys/web-upload": "^0.0.14",
"@irys/web-upload-solana": "^0.1.7",

And I am getting this error when building production. Can anyone help me.
Image

Framework & libraries:

  • Node: v20.18.1
  • Nextjs: v15
  • Nnpm: 8.8.0
@nixjs nixjs closed this as completed Jan 30, 2025
@nixjs nixjs reopened this Jan 30, 2025
@nixjs
Copy link
Author

nixjs commented Jan 30, 2025

Please help me

@JesseTheRobot
Copy link
Member

If you're building for a browser/web environment, use just @irys/web-upload, or configure nextjs to only import @irys/upload in a 'use server' file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants