Skip to content

Conflict with @telegram-apps/sdk 3.x #45

@PeaceeDuck

Description

@PeaceeDuck

When using this package with @telegram-apps/sdk version 3.x in a Nuxt.js project, the following issues occur:

I first installed @telegram-apps/sdk, then analytics
– when trying to initialize analytics, I keep getting an error saying that the project is opened outside of Telegram (even though it is opened inside Telegram).

I tried installing the package in a separate node_modules directory to avoid conflicts. Analytics started working, but the functionality of @telegram-apps/sdk stopped working:
– the back button doesn't work
– the viewport doesn't work

I suspect this is happening because there are two versions of @telegram-apps/sdk, which causes some parts to break.

In the code, @telegram-apps/sdk is used once in
\src\controllers\Session.controller.ts:
import { retrieveLaunchParams } from '@telegram-apps/sdk';

But according to the SDK documentation, to get retrieveLaunchParams, you should use bridge:
https://docs.telegram-mini-apps.com/packages/telegram-apps-bridge/launch-parameters

Metadata

Metadata

Assignees

Labels

bugSomething isn't workinggood first issueGood for newcomershelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions