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

Build on NextJs not working #23

Closed
lisabeyy opened this issue Jun 10, 2023 · 7 comments
Closed

Build on NextJs not working #23

lisabeyy opened this issue Jun 10, 2023 · 7 comments

Comments

@lisabeyy
Copy link

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 ?

@rightjelkin
Copy link
Collaborator

rightjelkin commented Jun 12, 2023

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 🙏

@alexnguyennz
Copy link

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.

@Loque18
Copy link

Loque18 commented Jul 15, 2023

Hello, @lisabeyy
I am also working with this library, I found a workaround, please check this issue on everscale-standalone-client repo

@rightjelkin
Copy link
Collaborator

Hello, @lisabeyy I am also working with this library, I found a workaround, please check this issue on everscale-standalone-client repo

Might be a solution

@Loque18
Copy link

Loque18 commented Aug 2, 2023

Hello, @lisabeyy I am also working with this library, I found a workaround, please check this issue on everscale-standalone-client repo

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.

@rightjelkin
Copy link
Collaborator

rightjelkin commented Aug 3, 2023

Hello, @lisabeyy I am also working with this library, I found a workaround, please check this issue on everscale-standalone-client repo

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

@rightjelkin
Copy link
Collaborator

rightjelkin commented Aug 3, 2023

@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.

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

4 participants