Skip to content

Conversation

tripletTrouble
Copy link

This MR try to fix error on dev server. I try to run dev server but always fail, then I try to debug and figured that vite server is exited when run in concurrently mode without --raw flag.

…ing, since vite always exited when not using --raw flag
@pushpak1300
Copy link
Member

Based on the documentation, raw mode strips away formatting. However, we need non-raw mode because we want to display output with colors and formatting. Raw mode should ideally be disabled since it would make it much harder to distinguish which output comes from which process .
Vite 7, Tailwind 4 and Laravel 12

https://github.com/open-cli-tools/concurrently?tab=readme-ov-file#concurrentlycommands-options

raw: whether raw mode should be used, meaning strictly process output will be logged, without any prefixes, coloring or extra stuff. Can be overridden per command.

Without changes.
Screenshot 2025-08-25 at 4 59 48 PM

with changes.
Screenshot 2025-08-25 at 5 00 10 PM

@tripletTrouble
Copy link
Author

That's good idea, but I found that composer run dev cannot run on my machine and show error like this:
Screenshot from 2025-08-25 20-01-02

Then I debug the error and try run npx concurrently "npm run dev" dependently. Finally it show error that npm run dev exited with code 1 like this:
Screenshot from 2025-08-25 20-05-09

I suspect that the vite script cannot run in non-interactive terminal, since vite clear the screen whenever code change or produce output that cannot be parsed by concurrently.

@joetannenbaum
Copy link
Contributor

What happens if you simply run npm run dev?

@tripletTrouble
Copy link
Author

tripletTrouble commented Aug 25, 2025

It run normally like I run npx concurrently --raw "npm run dev"

@joetannenbaum
Copy link
Contributor

For the vast majority of users, running this without the --raw flag results in a better experience. I'm not entirely sure what is happening on your machine, but we're going to keep it as is for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants