Closed boosik-riverbank closed 5 months ago
Hello!
Are you using this with wagmi/viem?
Was this app pre-existing before this change?
I don't think we utilize punycode/whatwg-url for our own purposes but a dependent package will. Do you use something like vite or webpack etc to setup the website? This seems to be a loader error. Are you using type="module"
with raw imports?
What would help is a package-lock.json
or yarn.lock
or more context as how you're running the page. Would also be helpful to know what index.js
is.
@iainnash seems same issue here. the punnycode import gets added in dist folder of protocol-sdk. node_modules/@zoralabs/protocol-sdk/dist/index.js:395:9
. Looks like maybe an issue with bundling setup?
Some findings. var CrossFetch = __toESM(require_node_ponyfill(), 1);
is getting injected in the dist/index.js
of @zoralabs/protocol-sdk's distribution bundle, probably due to graphql-request, this requires the punycode. Ideally this should not be a part of protocol-sdk's bundle, but i suspect some build script issues. The issue gets fixed if you comment the above line out.
Hi,
This has been fixed, graphql-request
has been removed as a dep.
Feel free to re-open if this arises again.
Hi, I am boosik developing with zora protocol sdk + nextjs for minting my NFT in frontend. I got these error when I import zora protocol-sdk. I am trying zora protocol-sdk + Viem, below is my code-base.
And I got this error in browser,
Is there any tip for handling this error?