在NX NestJS Angular项目中,如果在Ivy编译期间收到以下错误:
Error: ... contains a path "modules" that was not found in the Angular CLI workspace.
或
Error: ... contains a path "apps" that was not found in the Angular CLI workspace.
这意味着Ivy尝试在项目的根目录下查找模块或应用程序,但找不到对应的目录。
这通常是因为你的项目结构不符合Angular CLI的结构要求(特别是当你手动添加了自定义模块或应用程序时),或者是由于缓存问题导致的。
解决这个问题的方法是: