简体   繁体   English

找不到模块:错误:无法解析$$ _ gendir \\ app \\ item-receive-return.module.ngfactory.ts'

[英]Module not found: Error: Can't resolve $$_gendir\app\item-receive-return.module.ngfactory.ts'

ERROR in ./src/$$_gendir async
Module not found: Error: Can't resolve 
'E:\saif_pos_sys\pos\src\$$_gendir\app\pages\item-receive-return\item-
receive-return.module.ngfactory.ts' in 'E:\saif_pos_sys\pos\src\$$_gendir'
@ ./src/$$_gendir async
@ ./~/@angular/core/@angular/core.es5.js
@ ./src/app/app.component.ts
@ ./src/$$_gendir/app/app.component.ngfactory.ts
@ ./src/$$_gendir/app/app.module.ngfactory.ts
@ ./src/main.ts
@ multi ./src/main.ts

After aot build npm run build:prod:aot this error occured. 在自动构建npm run build:prod:aot发生此错误。 I have tried to change the version to angular/cli@1.2.4, zone.js@0.8.14 and install 我试图将版本更改为angular/cli@1.2.4,zone.js@0.8.14并安装
enhanced-resolve@3.3.0 but still it shows this error. Enhanced-resolve@3.3.0,但仍然显示此错误。 Every time I deleted the node_modules, npm cache clear and then again npm install. 每次删除node_modules时,清除npm缓存,然后再次安装npm。 Do not know what is the main problem? 不知道主要问题是什么? Can anyone please help me? 谁能帮帮我吗?

I found the problem of this error.I had written the module file name with a capital letter such as Item-receive-return-module.ts but in the page.routing.ts the module name was in small letter. 我发现了此错误的问题。我用大写字母(例如Item-receive-return-module.ts写了模块文件名,但是在page.routing.ts中,模块名是小写字母。 After I changed it to item-receive-return-module.ts finally the problem is solved. 在将其更改为item-receive-return-module.ts ,问题终于解决了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 ./ClientApp/boot.server.ts中的错误找不到模块:错误:无法解析'./../$$_gendir/ClientApp/app/app.app.server.module.ngfactory' - ERROR in ./ClientApp/boot.server.ts Module not found : error : Can't resolve './../$$_gendir/ClientApp/app/app.server.module.ngfactory' 找不到模块:错误:无法解析'./$$_gendir/app/app.module.ngfactory' - Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in TS Gatsby Node 项目中的“找不到模块:错误:无法解析...” - "Module not found: Error: Can't resolve..." in TS Gatsby Node project 未找到模块,无法解决 Angular 中的错误 - Module not found, Can't resolve error in Angular 找不到模块:错误:无法解析“操作系统” - Module not found: Error: Can't resolve 'os' in 找不到模块:错误:无法解析“加密” - Module not found: Error: Can't resolve 'crypto' in 找不到模块:错误:无法解析“加密” - Module not found: Error: Can't resolve 'crypto' 找不到模块:错误:无法解析“路径” - Module not found: Error: Can't resolve 'path' 找不到Angular2 / 4模块:错误:无法解析“ .. \\ app”中的“三个”在解析“ .. \\ app”中的“三个” - Angular2/4 Module not found: Error: Can't resolve 'three' in '..\app' resolve 'three' in '..\app' 找不到模块,无法解决 - Module not found, can't resolve
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM