Npm run watch-poll in Docker Container (laravel with vue.js) application stuck at 98% after first compilation

I’m working on containerizing laravel with vue.js application for local development. After running npm run watch-poll inside docker container, it can be successfully compiled, and listen to changes being made. I modify any .js file and save, it starts to compile again and it hangs at 98%. However, the latest modification is made, but it won’t listen to new changes anymore.

With the same project, running locally in my pc without using docker, npm run watch-poll runs without any problem.

tmp2

I don’t have much knowledge/experience regarding laravel, but I just need to make sure developers in my working company can develop laravel project using docker. I need some tips/solutions on how I can make sure laravel mix compilation can be done smoothly in docker container. #sendhelp