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

No confirmation received when running a Next.js dApp in production mode #2491

Closed
lgaroche opened this issue May 20, 2023 · 2 comments
Closed
Labels
bug Something isn't working

Comments

@lgaroche
Copy link

Description
When running a dApp with Next.js 13 in development mode (with a local server and hot reload), contract interactions with Taquito work just fine. However, if the project is built for production, and served either locally or on Vercel, contract interactions never receive a confirmation. Instead, it ends up with the exception Error: Confirmation polling timed out being thrown.

Steps To Reproduce

  1. Clone the simple reproduction repository (copy of the react example): https://github.com/lgaroche/taquito-next-issue
  2. Run in development mode (see the README): contract interactions are fine
  3. Build for production and start a local server: contract interactions fail

Expected behavior
There should be no behavior difference between dev and prod builds. I'm not sure whether the issue is on Next or Taquito side, but there's something odd going on with this specific scenario.

Desktop (please complete the following information):

  • OS: Mac OS X
  • Browser Brave with Temple
@lgaroche lgaroche added the bug Something isn't working label May 20, 2023
@pedrus16
Copy link

pedrus16 commented Jun 1, 2023

Hey, after trying a few things it turns out that disabling swcMinify in the next.config.js fixes the issue.

Looking at this discussion, it could be an issue with SWC.

@Innkst
Copy link
Contributor

Innkst commented Jun 9, 2023

Thanks for your comment @pedrus16
Closing this issue

@Innkst Innkst closed this as completed Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants