[英]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./)
./src/app/models/type/ModelType.ts:2:0-44 - 错误:找不到模块:错误:导出字段无法解析到目录(请求是./)
This error came when I upgraded my angular version from v12 to v13 (also upgraded some older packages with the latest ones).当我将 angular 版本从 v12 升级到 v13 时出现此错误(也将一些旧包升级为最新包)。 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?你装的是什么typescript版本?
For me upgrading to "typescript": "4.5.4" resolved this issue.对我来说升级到“typescript”:“4.5.4”解决了这个问题。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.