Skip to content
Back

Importing appwrite to svelte 5 project

  • 0
  • Web
Fugazi
25 Mar, 2025, 11:02

installed apprwrite into node_modules like so: npm install appwrite

i can see it is listesd as installed module.

but still when I try to use it in file like so:

import { Client, Databases, ID } from 'appwrite'; i get error Cannot find module 'appwrite' or its corresponding type declarations.ts

TL;DR
Developers are facing an issue while trying to import Appwrite into their Svelte 5 project. Although they have installed Appwrite using `npm install appwrite`, they are getting an error stating "Cannot find module 'appwrite' or its corresponding type declarations.ts" when trying to use it in a file.
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