ng build --prod error
Bug Report or Feature Request (mark with an x)
- [ ] bug report -> please search issues before submitting
- [ ] feature request
- [x] support request
Versions.
version: 1.3.2
Repro steps.
Existing project generated by v1.3.2 -> ng build --prod
The log given by the failure.
ERROR in Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files.
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/Users/avrilverhaeghen/Develop/frontoffice/src'
resolve './$$_gendir/app/app.module.ngfactory' in '/Users/avrilverhaeghen/Develop/frontoffice/src'
using description file: /Users/avrilverhaeghen/Develop/frontoffice/package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: /Users/avrilverhaeghen/Develop/frontoffice/package.json (relative path: ./src)
using description file: /Users/avrilverhaeghen/Develop/frontoffice/package.json (relative path: ./src/$$_gendir/app/app.module.ngfactory)
no extension
Field 'browser' doesn't contain a valid alias configuration
/Users/avrilverhaeghen/Develop/frontoffice/src/$$_gendir/app/app.module.ngfactory doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
/Users/avrilverhaeghen/Develop/frontoffice/src/$$_gendir/app/app.module.ngfactory.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
/Users/avrilverhaeghen/Develop/frontoffice/src/$$_gendir/app/app.module.ngfactory.js doesn't exist
as directory
/Users/avrilverhaeghen/Develop/frontoffice/src/$$_gendir/app/app.module.ngfactory doesn't exist
[/Users/avrilverhaeghen/Develop/frontoffice/src/$$_gendir/app/app.module.ngfactory]
[/Users/avrilverhaeghen/Develop/frontoffice/src/$$_gendir/app/app.module.ngfactory.ts]
[/Users/avrilverhaeghen/Develop/frontoffice/src/$$_gendir/app/app.module.ngfactory.js]
[/Users/avrilverhaeghen/Develop/frontoffice/src/$$_gendir/app/app.module.ngfactory]
@ ./src/main.ts 3:0-74
@ multi ./src/main.ts
I'm having this issue and not quite sure where to look. With the first error it seems that he's having troubles finding my modules maybe because of index.ts files but I don't have any.
Mention any other details that might be useful.
I'm using lazy load modules, not sure if I have to change the default settings to build AOT?
Thanks for any help!
Forgot to update environment.prod.ts š
i have the ame issueERROR in : Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files. how Solveļ¼this is my repo
meepo-idesign
this is the error log, confuseļ¼
chunk {0} styles.21c9ee0f55cbc0d8daee.bundle.css (styles) 229 kB [initial] [rendered]
chunk {1} polyfills.3bc34265385d52184eab.bundle.js (polyfills) 86 bytes [initial] [rendered]
chunk {2} main.e402deade8b026b7d50e.bundle.js (main) 84 bytes [initial] [rendered]
chunk {3} inline.9d07561b59257af76b95.bundle.js (inline) 1.45 kB [entry] [rendered]
ERROR in : Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files.
Any news on this issue ? Facing the same situation; no details or what's happening.
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.