Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

bipincode's avatar

Issue with Compilation with npm run dev vite

I am having this issue since few weeks where my laravel projects are not working with npm run dev and compiling assets.

When I run npm run build It works fine compiles assets and works perfectly But when I run npm run dev The command works fine and also runs also terminal displaying the success message but when i visit the url the css and js assets are completely messed up but when I stop the vite server again it works fine. I checked on my another PC and it is working perfectly fine on it I unistalled all the tools and installed again but still the same issue Can anyone tell me what may be the issue and how to solve it

0 likes
0 replies

Please or to participate in this conversation.