16.2.2022

NX Monorepo - Error: ENOENT: no such file or directory

After moving a model (class or interface) from project to lib there is an error with npm start (and with other commands most probably as well) "Error: ENOENT: no such file or directory {{old location of the file}}".

grafik

Fix this/Workaround

  • Try git stash and git stash pop
Dennis

Softwareentwickler

Gitlab
Zur Übersicht

Standort Hannover

newcubator GmbH
Bödekerstraße 22
30161 Hannover

Standort Dortmund

newcubator GmbH
Westenhellweg 85-89
44137 Dortmund