Installing new dependency causes module not found error
👓 What did you see?
In development, when introducing a new dependency and restarting the container with npm run up
, "Module not found" is raised
✅ What did you expect to see?
No error thrown
💻 Where does this happen?
In development while running through docker compose
🔬 How do I recreate this?
- Spin up the container
npm run up
- Install a new dependency
npm i cowsaw
- Use the new dependency in the code (
import cowsay from "cowsay";
) - Restart the container with
npm run up
- Visit the page you introduced the new dependency
📚 Any additional information?
Discussed in:
Tried to address in: