-
Notifications
You must be signed in to change notification settings - Fork 17
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
Build on NextJs not working #23
Comments
Hello, yes we know about problems with nekoton and next, but nekoton is not a part of that repository and project at all. You may address issue to standalone-client repo. If you will receive an answer from authors, kindly please put a link for the answer here 🙏 |
If you're using Next.js 13 and the app router, you'll need to dynamically import the library. E.g. const init = async () => {
const { initVenomConnect } = await import("@/lib/venom"); // where your initVenomConnect code is, in this case lib/venom.ts
const venomConnect = await initVenomConnect();
setVenomConnect(venomConnect);
}; I didn't need to do this for pages router. |
Hello, @lisabeyy |
Might be a solution |
I don't think it's a solution, it is instead just a workaround, but ir works, howwever everscale-stand-alone package's mantainers should look for a solution, tho it is more related to nextJS and how it handles wasm files, but it should at least be mentioned on the documentation, so that other devs, don't waste time trying to find a solution. |
Anyway, the problem is not about venom-connect, but about provider. Maintainer of provider has answered about including all wasm files in build...I think it will be better and more effective to work with this problem in the issues of provider repo...same for docs - it would be better to have such information there and here just to have a links |
@Loque18 actually you could create a PR for README with your workaround....it would be good for community...at least developers could use it for now. |
Hey,
I am having issue using this library when i try to build my code with nextJS, it returns the following error: ".next/server/chunks/nekoton_wasm_bg.wasm'"
Any idea, how to work with Nekoton and NextJS ?
The text was updated successfully, but these errors were encountered: