简体   繁体   English

升级 angular v12 到 v13 时出现找不到模块错误

[英]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.

相关问题 Angular 从 v12 迁移到 v13:模块<typescript>只能使用“allowSyntheticDefaultImports”标志默认导入</typescript> - Angular Migrate from v12 to v13: Module <typescript> can only be default-imported using the 'allowSyntheticDefaultImports' flag 将 Angular v12 升级到 v13 后未捕获 TypeError - Uncaught TypeError after upgrading Angular v12 to v13 找不到模块“@angular/cdk/dialog”- Angular 将 v13 升级到 v14 问题 - Cannot find module '@angular/cdk/dialog' - Angular upgrade v13 to v14 issue 升级到 Angular v13 后,每次更改都会修改附加缓存文件 - After upgrade to Angular v13, Additional cache files modified on each change Angular Karma:从 Angular v8 升级到 v12 后,await fixture.whenStable 总是超时 - Angular Karma: await fixture.whenStable always times out after upgrade from Angular v8 to v12 如何获取在 Angular v13 中动态加载的组件的模块? - How do you get the module of a component that's been dynamically loaded in Angular v13? Angular 从 v12 迁移到 v14 - Angular migration from v12 to v14 Angular CLI v13 - 无法运行“ng”命令 - Angular CLI v13 - Can not run "ng" commands 从 Angular 8 升级到 v12 导致“生成浏览器应用程序包(阶段:设置)...类型错误:无法读取未定义的属性‘文本’” - Upgrade from Angular 8 to v12 causing "Generating browser application bundles (phase: setup)...TypeError: Cannot read property 'text' of undefined" "Angular v12 组件样式文件不编译tailwindcss @apply" - Angular v12 Component style files not compiling tailwindcss @apply
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM