SDK
SDK copied to clipboard
ReferenceError: window is not defined on node js
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