twa-dev / SDK

npm package for TWA SDK
https://codesandbox.io/s/sdk-kj5961
MIT License
238 stars 21 forks source link

Importing module causes "Cannot find module '@twa-dev/sdk' or its corresponding type declarations" error in VS code #12

Open pernifin opened 9 months ago

pernifin commented 9 months ago

Basically title. Although importing import { type WebApp } from "@twa-dev/types"; works fine, but import TwaSdk from '@twa-dev/sdk'; causes this error.

emil14 commented 6 months ago

tmp workaround

// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-nocheck
Mattijah commented 5 months ago

Same issue, none of these work and still no solution in months?