简体   繁体   中英

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.

What typescript version do you have installed?

For me upgrading to "typescript": "4.5.4" resolved this issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM