If your Dockerfile and package.json files are correct and still have the issue:
-
Make sure you’ve rebuilt your container images.
-
Try
docker-compose down -v
before starting the containers again with docker-compose up.
This removes all volumes.