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

[dapp-kit] SuiClientProvider can't be used with turbopack #20505

Closed
kevinkliimask opened this issue Dec 4, 2024 · 3 comments
Closed

[dapp-kit] SuiClientProvider can't be used with turbopack #20505

kevinkliimask opened this issue Dec 4, 2024 · 3 comments
Assignees
Labels

Comments

@kevinkliimask
Copy link

kevinkliimask commented Dec 4, 2024

Steps to Reproduce Issue

  1. Install @mysten/dapp-kit npm i @mysten/dapp-kit
  2. Wrap your Next app in SuiClientProvider and run the server with next dev --turbopack.

Expected Result

Next app compiles successfully.

Actual Result

Server throws error ReferenceError: e is not defined.

Relevant Information

Confirmed to occur in Next 14 and Next 15. I used pnpm as the package manager.
Current workaround is to run Next server without turbopack with next dev.

@0x0687
Copy link

0x0687 commented Dec 17, 2024

Same issue here

@hayes-mysten
Copy link
Contributor

This looks like the issue reported here: vercel/next.js#72232

This will need to be fixed in turbo pack. For now the workaround is to not use the --turbopack flag

@michaelmirandi
Copy link

removing --turbopack did the trick for me!

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

No branches or pull requests

5 participants