Skip to content
Back

`import { Client, Databases, Account } from "appwrite"` Not working

  • 0
  • Web
Yaveen
6 Jan, 2025, 11:54

in appwrite.js, ```js import { Client, Databases, Account } from "appwrite";

TypeScript
doesnt work.
TL;DR
Developers are trying to import from the "appwrite" package in their project but it's not working. They are following a guide from appwrite.io and shared their `package.json`. Another developer asked if they are using webpack or vite. **Solution:** The issue might be related to the module system being used. Ensure proper module resolutions are configured based on the build tool being used (like webpack or vite).
Yaveen
6 Jan, 2025, 11:55

I'm using the following guide:

https://appwrite.io/docs/quick-starts/web

Meldiron
6 Jan, 2025, 11:56

Heyy 👋 Can you share your package.json with me? Im trying to see if you are using webpack, vite, or anything similar

Yaveen
6 Jan, 2025, 11:58

hiiiiiiiiiii

Yaveen
6 Jan, 2025, 11:58
TypeScript
{
  "name": "fresher-project",
  "version": "1.0.0",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "node server.js"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "description": "",
  "dependencies": {
    "appwrite": "^14.0.1",
    "body-parser": "^1.20.3",
    "express": "^4.21.2",
    "node-appwrite": "^14.1.0",
    "sqlite3": "^5.1.7"
  }
}
Yaveen
6 Jan, 2025, 11:59

cool name btw

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more