Closed kseikyo closed 1 year ago
Same issue here. OpenSea-js 2.0.1 didn't have this issue.
Adding this to the next.config.js
fixed the compile error for us
future: {
webpack5: true,
},
webpack: (config, {}) => {
config.resolve.fallback = {
...config.resolve.fallback,
fs: false,
};
},
but we still get a bunch of critical dependency errors in the console.
Adding this to the
next.config.js
fixed the compile error for usfuture: { webpack5: true, }, webpack: (config, {}) => { config.resolve.fallback = { ...config.resolve.fallback, fs: false, }; },
but we still get a bunch of critical dependency errors in the console.
Thank you, but I was aware of the possible workarounds.
I created the issue as an SDK shouldn't need a workaround just to use it. but this project seems abandoned when it comes to issues and PRs anyway 😔
I ran into this issue as well on our project. The workaround suggested by @zackbiernat worked for us in our Next.JS app. Hopefully someone from OS team will take a look at this and put in a fix!
We are looking into this!
issue also happening when compiling for Cloudflare workers
Yes, I am also facing the same issue. Please fix this.
I'm also facing the same problem in laravel vue when compiling
In case folks are wondering where the snippet from @zackbiernat actually fits, please see: https://stackoverflow.com/a/67478653/111804
Hi everyone, I wanted to follow up on this. Just curious, is this still happening when using the latest version of node and the sdk?
Hi everyone, I wanted to follow up on this. Just curious, is this still happening when using the latest version of node and the sdk?
I still got this issue on OpenSea-js 4.0.1 and Node 16.15.1- https://github.com/ProjectOpenSea/opensea-js/issues/421#issuecomment-1061214437 still applies
Hi everyone, I wanted to follow up on this. Just curious, is this still happening when using the latest version of node and the sdk?
I still got this issue on OpenSea-js 4.0.1 and Node 16.15.1- #421 (comment) still applies
Same for me...
Adding this to the
next.config.js
fixed the compile error for usfuture: { webpack5: true, }, webpack: (config, {}) => { config.resolve.fallback = { ...config.resolve.fallback, fs: false, }; },
but we still get a bunch of critical dependency errors in the console.
Thank you. it worked. Don't forget to return the Config object from the Webpack method. Use dynamic import when a server error occurs in NextJS.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.
Steps to reproduce
yarn create next-app
,npx create-next-app@latest
, orpnpm dlx create-next-app@latest
pages/index.js
import { OpenSeaPort } from "opensea-js";
OS: Garuda Linux x86_64 Kernel: 5.16.10-zen1-1-zen Node version: v16.13.2
Stack trace