'Getting Module not found error when upgrade angular v12 to v13

Hi developers and contributors,

I am struggling to find out what is the issue with the following error:

./src/app/models/type/ModelType.ts:2:0-44 - Error: Module not found: Error: Resolving to directories is not possible with the exports field (request was ./)

This error came when I upgraded my angular version from v12 to v13 (also upgraded some older packages with the latest ones). I am trying to solve this for a couple of days and it would be nice if someone faced the same issue, or have any ideas where it may come from.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source