Skip to content

🐛 Bug Report: Window is not defined #221

@iswarmondal

Description

@iswarmondal

👟 Reproduction steps

  • I cloned the console repo for appwrite
  • I configured the .env.example file with the credentials of my local instance of Appwrite
  • After installing the dependencies on my local system just did npm run dev
  • The app didn't even run, just throws the error ReferenceError: window is not defined. The error is coming form src/lib/stores/sdk.ts.
  • Here in the sdk.ts file on line number 16 the error is seems to be located at

👍 Expected behavior

After configuring the env file and installing the dependencies the app is suppose to run without errors

👎 Actual Behavior

The app is throwing this error

image

Here is the typescript error in src/lib/stores/sdk.ts

image

🎲 Appwrite version

Version 1.1.x

💻 Operating system

Windows

🧱 Your Environment

I'm running Appwrite on my local machine using docker.

👀 Have you spent some time to check if this issue has been raised before?

  • I checked and didn't find similar issue

🏢 Have you read the Code of Conduct?

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions