introduction h4>
error in packaging to generate dist file when creating angular project:
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D:\web\task\src'
@ ./src/main.ts 3:0-74
@ multi ./src/main.ts
solution:
replace ng build — prod with ng build — env=prod, and then compile successfully.
reason: this is not based on aot, ng build – env = prod: replace environment.prod.ts with environment.prod.ts, but it’s a simple ng build. Ng build — prod: replace the improved version with aot + environment.prod.ts (previously, it was ng build — prod — aot)
Read More:
- Solution to electron error “cannot find module app”
- Attributeerror: module tensorflow no attribute app solution
- Module not found: Error: Can’t resolve ‘sass-loader’ in ‘F:\H5\project-h5’
- Webpack 4 : ERROR in Entry module not found: Error: Can’t resolve ‘./src’
- Module not found:Error:Can’t resolve ‘rc-animate/lib/CSSMotionList’ in ‘……’
- npm start:Module not found: Error: Can’t resolve ‘xlsx’ in ‘/Users/huzhiqi/Downloads/web/…
- ERROR in Entry module not found Error Can t resolve
- Error running app: Default Activity Not Found
- [solved] not found android.support .v7. internal.app.WindowDecorActionbar
- Win10 (1703) app store download app prompt error code 0x80d0000a
- Failed to load bundle…Unable to resolve module `xxx` from xxx: Module `xx` does not exist
- Error in entry module not found: error: can’t resolve ‘Babel loader’
- Module not found error: the solution to the problem of no module named ‘MySQL’
- ./src/router/index.js Module not found: Error: Can‘t resolve ‘@/views/tet_demo‘ in ‘D:\admin\src\rou
- Error code 1 error resolution (NPX create react app my app execution reports an error)
- tensorflow import error: DLL load failed: The specified module could not be found (DLL load failed: The specified module could not be found)
- Ctypes loading DLL error oserror: [winerror 126] the specified module could not be found
- (EE) Failed to load module “fbdev” (module does not exist, 0)
- ImportError: dynamic module does not define module export function (PyInit_cv_bridge_boost)