#Unable to run vite dev server

6 messages · Page 1 of 1 (latest)

bold blaze
#

Trying to develop a laravel app (or any app for that matter) from a mobile device just sounds like a absolute pain. Your error is definitely related to that since the vite dev server starts up a bunch of file watchers so it can reload when your code changes. I doubt a mobile device linux app supports the necessary number of processes. if you look right in the middle of your screenshot you'll see Error: ENOSPC: System limit for number of file watchers reached

#

I'm curious as to why you would try to write code from your phone in the first place. I've tried apps like that purely for the novelty (writing hello world and such) of it than for any serious development like a website

solar shell
#

@bold blaze Hello Cole, thanks for your reply. I'm using my phone because my old PC got damaged recently so I had to find an alternative in the meantime. And despite the limitations of this kind of environment, it's still powerful enough to create websites and apps. Which is why I don't understand why vite wouldn't work, I had used create-react-app on this very same environment and it works perfectly. I know react and Laravel are two different things and probably behave differently, so I thought It could still be possible to use Laravel too. And it is, vite just don't want to cooperate 😆

bold blaze
#

That stinks about your computer. The most I can say is good luck in the meantime. Also you can always try running npm run build since it doesnt start filesystem watchers. It just won't update your assets when your files change

visual furnace
#

Hi, can you check the version of node or npm you are running? Cause the node version must not be less than 16 for it to run smoothly

solar shell
# visual furnace Hi, can you check the version of node or npm you are running? Cause the node ver...

Hello @visual furnace , thanks for joining the conversation. Yeah, indeed they are up to date. The good thing about Termux is that it always performs a package upgrade whenever you install something. The next step that I'm gonna try is install a chroot-based distro with Termux, and see if maybe, that way I can overcome the error, since it seems something related to the file system. I'll keep you guys posted if I get it working. ✌🏻