FAQ | This is a LIVE service | Changelog

Skip to content

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?

  1. Spin up the container npm run up
  2. Install a new dependency npm i cowsaw
  3. Use the new dependency in the code (import cowsay from "cowsay";)
  4. Restart the container with npm run up
  5. Visit the page you introduced the new dependency

📚 Any additional information?

Discussed in:

Tried to address in: