-
Notifications
You must be signed in to change notification settings - Fork 11.9k
Closed
Description
Compiling an app with angular-cli with
ng build --prod --env=prod --aot
I end up the the following error in the browser
Uncaught Error: Cannot find module "./$$_gendir/app/app.module.ngfactory"
at Object.<anonymous> (main.925377c….bundle.js:31562)
at r (bootstrap 6ea98d3…:52)
at Object.<anonymous> (main.925377c….bundle.js:51201)
at r (bootstrap 6ea98d3…:52)
at window.webpackJsonp (bootstrap 6ea98d3…:23)
at main.925377c….bundle.js:1
the code causing the error is:
/***/ },
/* 208 */
/***/ function(module, exports, __webpack_require__) {
"use strict";
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__polyfills_ts__ = __webpack_require__(285);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__polyfills_ts___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__polyfills_ts__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(1);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__environments_environment__ = __webpack_require__(284);
throw new Error("Cannot find module \"./$$_gendir/app/app.module.ngfactory\"");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_platform_browser__ = __webpack_require__(270);
Versions
MacOS 10.12.2
angular-cli: 1.0.0-beta.21
node: 6.9.1
os: darwin x64
Any idea what may be the origin of the error?
andyrue, sabrio, jiveshrelhan, IlyaAndr, borislemke and 1 more
Metadata
Metadata
Assignees
Labels
No labels