Could not find source file: …

Peter Prins
1 min readApr 6, 2020

--

This is part of my error remedy reference collection. I create this series as a personal reference and I share it in the hope this series could help you fix bugs more easily.

Description

When running my Jest test scripts I encountered the following error:

Error

Solution

  • Clear cache jest
jest --clearCache
  • Delete the ./dist folder
rm -rf ./dist

System:

  • node: 13.12..0
  • jest: 25.2.1
  • ts-jest: 25.3.1
  • typescript: 3.8.3

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Peter Prins
Peter Prins

Written by Peter Prins

Nerd Entrepreneur who loves to improve peoples’ lives with software. Passionate about software architecture and usability. Shares knowledge to help others.

Responses (3)

Write a response