create-client icon indicating copy to clipboard operation
create-client copied to clipboard

React client files changes doesn't work without restarting Docker container

Open KillianLeroux opened this issue 5 years ago • 1 comments

Hi!

First of all, thanks a lot for your awesome work with API Platform! :)

I have a problem with the React client:

After generating the client with this command (from website tutorial): docker-compose exec client generate-api-platform-client (no problem all files are generated and no error message), I edited the client/src/index.js as it's mentioned in the doc but when I add modifications, save the file, and reload the page (https://localhost/books/), "Not Found" is displayed. Same thing when I edit client/src/Welcome.js file (add two exclamation points for example): nothing change. I have to stop the client container, and restart it to see my changes :/

Do you see where is the problem?

I'm on Windows 10 with Docker for Windows (latest version).

Don't hesitate to ask me further information!

Thanks ;)

KillianLeroux avatar May 09 '19 13:05 KillianLeroux

I also encountered that problem. Manually restarting the client container solves the "Not Found" problem, but it should pick up changes automatically.

doa-b avatar Jul 05 '19 15:07 doa-b