#error during build: RollupError

1 messages · Page 1 of 1 (latest)

jovial igloo
#

App uses react +TS + vite

cosmic whale
#

Can you share your code?

jovial igloo
cosmic whale
#

Change this

import { account } from "../../appwrite";

To this

import { account } from "appwrite";
#

You'll also need initialize a client
Check this

jovial igloo
#

from root folder

cosmic whale
#

Yes

#

I see now, why you've added the d in the .d.ts

jovial igloo
#

if I use .ts

#

this happens

cosmic whale
#

Probably because it can't be the same name
Change it to appwriteConfig.ts and the import and re test

jovial igloo
#

okay

jovial igloo
cosmic whale
#

What error now?

#

Ohh
Yes,

#

For vite vite any files most be inside the src foler
Move the appwriteConfig.ts into the src one
And change the login to

import { account } from "../appwriteConfig";