Telegram-Mini-Apps / telegram-apps

Made from scratch TypeScript packages, examples and documentation you will surely need to start developing on Telegram Mini Apps.
https://docs.telegram-mini-apps.com/
MIT License
640 stars 175 forks source link

[Bug]: Module "@telegram-apps/sdk-react" has no exported member "SDKProvider". ts(2305) #524

Closed Pp-Tomo closed 3 hours ago

Pp-Tomo commented 4 hours ago

Telegram Application

Telegram for iOS, Telegram for macOS

Describe the Bug

package.json

"dependencies": { "@next/third-parties": "^15.0.1", "@nextui-org/react": "^2.4.1", "@nextui-org/theme": "2.2.4", "@tanstack/react-query": "^5.40.0", "@telegram-apps/sdk-react": "^2.0.9", "axios": "^1.7.2", "bignumber.js": "^9.1.2", "clsx": "^2.1.1", "framer-motion": "^11.1.1", "jotai": "^2.10.1", "moment": "^2.30.1", "next": "14.2.3", "next-themes": "^0.2.1", "react": "18.3.1", "react-copy-to-clipboard": "^5.1.0", "react-dom": "18.3.1", "react-photo-view": "^1.2.6", "sonner": "^1.5.0", "tailwindcss": "3.4.3", "vconsole": "^3.15.1" },

To Reproduce

import {  SDKProvider } from '@telegram-apps/sdk-react'
// ^ Module "@telegram-apps/sdk-react" has no exported member "SDKProvider". ts(2305)

Expected Behavior

Why?

heyqbnk commented 3 hours ago

Because it has no SDKProvider. Read documentation