Closed num13ru closed 1 year ago
For next@13, it also yields an error, although a different one. It's worth noticing that i used "App Router (app
directory)".
Next@12 with the "Pages router" works fine, though.
It seems like the problem is related to a specific range of Next.js versions rather than an issue with TON Connect.
To resolve this, you have to update or rollback the NextJS version:
Please use one of these solutions.
Adding 'use client'; on top of the page fixed the error to me.
fixed the error to me.
+1 on anton solution - fixed for me on next 14.2.3
We should add the requirement of NextJs 14.0.4 to the readme. I spent hours trying to fix this until i found this
Description
I'm experiencing an import error when using
@tonconnect/ui-react
in a Next.js 14.0.2 application. The specific error is related toTonConnectUIProvider
not being exported as expected.Error Message
Code Snippet
Additional Information
@tonconnect/ui-react
version: 2.0.0-beta.6Node.js version: v20.6.1
I would appreciate any guidance or fixes for this issue. Thank you!