Привет.
Я пытаюсь собрать приложение в режиме AOT. В ответ я получаю вот это:
ERROR in ../src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'D:\server7\OSPanel\domains\bb.ru\src_angular\admin\src'
resolve './$$_gendir/app/app.module.ngfactory' in 'D:\server7\OSPanel\domains\bb.ru\src_angular\admin\src'
using description file: D:\server7\OSPanel\domains\bb.ru\src_angular\admin\package.json (relative path: ./src)
Field 'browser' doesn't contain a valid alias configuration
after using description file: D:\server7\OSPanel\domains\bb.ru\src_angular\admin\package.json (relative path: ./src)
using description file: D:\server7\OSPanel\domains\bb.ru\src_angular\admin\package.json (relative path: ./src/$$_gendir/app/app.module.ngfactory)
no extension
Field 'browser' doesn't contain a valid alias configuration
D:\server7\OSPanel\domains\bb.ru\src_angular\admin\src\$$_gendir\app\app.module.ngfactory doesn't exist
.ts
Field 'browser' doesn't contain a valid alias configuration
D:\server7\OSPanel\domains\bb.ru\src_angular\admin\src\$$_gendir\app\app.module.ngfactory.ts doesn't exist
.js
Field 'browser' doesn't contain a valid alias configuration
D:\server7\OSPanel\domains\bb.ru\src_angular\admin\src\$$_gendir\app\app.module.ngfactory.js doesn't exist
as directory
D:\server7\OSPanel\domains\bb.ru\src_angular\admin\src\$$_gendir\app\app.module.ngfactory doesn't exist
[D:\server7\OSPanel\domains\bb.ru\src_angular\admin\src\$$_gendir\app\app.module.ngfactory]
[D:\server7\OSPanel\domains\bb.ru\src_angular\admin\src\$$_gendir\app\app.module.ngfactory.ts]
[D:\server7\OSPanel\domains\bb.ru\src_angular\admin\src\$$_gendir\app\app.module.ngfactory.js]
[D:\server7\OSPanel\domains\bb.ru\src_angular\admin\src\$$_gendir\app\app.module.ngfactory]
@ ../src/main.ts 4:29-76
@ multi webpack-dev-server/client?http://0.0.0.0:0 ../src/main.ts
ERROR in Error: Internal error: unknown identifier undefined
at Object.importExpr$$1 [as importExpr] (D:\server7\OSPanel\domains\bb.ru\src_angular\admin\node_modules\@angular\compiler\bundles\compiler.umd.js:24071:23)
at tokenExpr (D:\server7\OSPanel\domains\bb.ru\src_angular\admin\node_modules\@angular\compiler\bundles\compiler.umd.js:18428:39)
at providerDef (D:\server7\OSPanel\domains\bb.ru\src_angular\admin\node_modules\@angular\compiler\bundles\compiler.umd.js:18331:20)
at D:\server7\OSPanel\domains\bb.ru\src_angular\admin\node_modules\@angular\compiler\bundles\compiler.umd.js:18548:77
at Array.map (native)
at NgModuleCompiler.compile (D:\server7\OSPanel\domains\bb.ru\src_angular\admin\node_modules\@angular\compiler\bundles\compiler.umd.js:18548:44)
at AotCompiler._compileModule (D:\server7\OSPanel\domains\bb.ru\src_angular\admin\node_modules\@angular\compiler\bundles\compiler.umd.js:24004:32)
at D:\server7\OSPanel\domains\bb.ru\src_angular\admin\node_modules\@angular\compiler\bundles\compiler.umd.js:23916:66
at Array.forEach (native)
at AotCompiler._compileImplFile (D:\server7\OSPanel\domains\bb.ru\src_angular\admin\node_modules\@angular\compiler\bundles\compiler.umd.js:23916:19)
at D:\server7\OSPanel\domains\bb.ru\src_angular\admin\node_modules\@angular\compiler\bundles\compiler.umd.js:23829:87
at Array.map (native)
at AotCompiler.emitAllImpls (D:\server7\OSPanel\domains\bb.ru\src_angular\admin\node_modules\@angular\compiler\bundles\compiler.umd.js:23829:52)
at CodeGenerator.emit (D:\server7\OSPanel\domains\bb.ru\src_angular\admin\node_modules\@angular\compiler-cli\src\codegen.js:42:46)
at D:\server7\OSPanel\domains\bb.ru\src_angular\admin\node_modules\@angular\compiler-cli\src\codegen.js:33:61
at process._tickCallback (internal/process/next_tick.js:109:7)
webpack: Failed to compile.
Особенно доставляет вот эта строка:
ERROR in Error: Internal error: unknown identifier undefined
Как это вообще понимать?