Open mikhaillav opened 2 weeks ago
I also noticed same error occurs on basically every use... method (useInitData, useLaunchParams, useMiniAppRaw, useViewport...
).
Seems like you are doing something wrong with Next.js: https://github.com/vercel/next.js/discussions/49074
Telegram Application
Other
Describe the Bug
I tried to run
useInitData(true)
in the nextjs server component. But got an error:Result is the same in chrome or telegram desktop mini-app. Im using latest versions of nextjs(14.2.7), react(18.3.1) and sdk(1.1.3).
To Reproduce
Steps to reproduce the behavior:
export default async function Test() { const initData = useInitData(true);
}