Back

Error when building React Project

  • 0
  • Tools
  • General
  • Web
Dave
20 Sep, 2023, 14:53

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.

TL;DR
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
20 Sep, 2023, 14:54
Dave
20 Sep, 2023, 14:54

The errors are still a lot

Drake
20 Sep, 2023, 16:34

weeeird. it worked fine for me running:

TypeScript
npm create vite@latest
# change into folder
npm i appwrite
npm run dev
Drake
20 Sep, 2023, 16:39

I also tried with these options and it built fine:

TypeScript
Select a framework: › React
Select a variant: › TypeScript + SWC
Dave
20 Sep, 2023, 18:07

Strangee, then why isn't it working on my end?!

Drake
20 Sep, 2023, 20:12

does restarting your IDE change anything?

Dave
22 Sep, 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
22 Sep, 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
23 Sep, 2023, 02:25

Is it an old version? Maybe there's some conflicting setting?

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