I used vite to bootstrap my react project and now I want to build and I am getting a lot of errors from appwrite causing the build to stop.
Upon going to appwrite in my node_modules, I get error from vscode too.
The appwrite client version I'm using is 13.0.0.
Would I need to downgrade my appwrite version? If yes, to what version.
I will drop some of the errors I got when building in the chat.
Summary
User is experiencing errors when building a React project using Vite. They suspect that the issue might be caused by an old version or conflicting settings. They have eslint installed in their project but not in the sample project and wonder if that could be the reason. Restarting the IDE did not help. User created a new project with appwrite installed and it built successfully, though there are still some errors in the node_modules folder. User tried different options and they all built fine. User mentions using vite to bootstrap the project and encountering numerous errors from appwrite, causing the build to fail. User wonders if they need to downgrade their appwrite version
Dave
Rank 1: Thread
Sep 20, 2023, 14:54
Dave
Rank 1: Thread
Sep 20, 2023, 14:54
The errors are still a lot
Drake
Sep 20, 2023, 16:34
weeeird. it worked fine for me running:
npm create vite@latest
# change into folder
npm i appwrite
npm run dev
Drake
Sep 20, 2023, 16:39
I also tried with these options and it built fine:
✔ Select a framework: › React
✔ Select a variant: › TypeScript + SWC
Dave
Rank 1: Thread
Sep 20, 2023, 18:07
Strangee, then why isn't it working on my end?!
Drake
Sep 20, 2023, 20:12
does restarting your IDE change anything?
Dave
Rank 1: Thread
Sep 22, 2023, 23:44
Sorry for the late reply. No, restarting my IDE did not help.
I tried creating a new project and building after installing appwrite and it built. The errors i saw in the node_modules are still there too but it is not stopping the build
Dave
Rank 1: Thread
Sep 22, 2023, 23:44
I have eslint installed in my project and i dont have it installed in the sample project. Could that be why?
Drake
Sep 23, 2023, 02:25
Is it an old version? Maybe there's some conflicting setting?