Getting Module not found error when upgrade angular v12 to v13

Viewed 899

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.

1 Answers

Upgrading to "typescript": "4.5.4" resolved this issue.

Related