SDK icon indicating copy to clipboard operation
SDK copied to clipboard

ReferenceError: window is not defined on node js

Open young-tea opened this issue 1 year ago • 0 comments

Just started using the @twa-dev/sdk, and the first thing I see when tyring to test is

ReferenceError: window is not defined

so the error is not on my side, it points out the node_modules/@twa-dev/sdk/dist/telegram-web-apps.js:248:5

Any fixes? Or maybe I am doing something wrong? Using const WebApp = require('@twa-dev/sdk'), and there is no code based on it

young-tea avatar Aug 13 '24 23:08 young-tea