I have tried the fix mentioned in the issue #26.
Still the issue is not addressed. I have the latest version of Node and NPM.
> tob-web@0.0.1 postinstall /opt/app-root/src
> ng build --prod --base-href ${NG_BASE_HREF:-/} ${NG_BUILD_FLAGS:-} && cp dist/themes/_active/index.html dist/index.html
Date: 2019-03-13T21:25:27.729Z
Hash: 27f5b10f3fc7b5603313
Time: 20218ms
chunk {0} polyfills.c3cca01ff156b9e294b0.bundle.js (polyfills) 68.5 kB [initial] [rendered]
chunk {1} main.d4e3ea57bd9f031aba88.bundle.js (main) 434 bytes [initial] [rendered]
chunk {2} styles.bd7c2783ce79f1c86e3d.bundle.css (styles) 1.61 kB [initial] [rendered]
chunk {3} vendor.44e30b54a081b139a9e3.bundle.js (vendor) 208 kB [initial] [rendered]
chunk {4} inline.31e1fb380eb7cf3d75b1.bundle.js (inline) 798 bytes [entry] [rendered]
ERROR in ./src/main.ts
Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in '/opt/app-root/src/src'
ERROR in Error: Error encountered resolving symbol values statically. Could not resolve localize-router relative to /opt/app-root/src/src/app/app.module.ts., resolving symbol AppModule in /opt/app-root/src/src/app/app.module.ts, resolving symbol AppModule in /opt/app-root/src/src/app/app.module.ts, resolving symbol AppModule in /opt/app-root/src/src/app/app.module.ts
at Error (native)
at syntaxError (/opt/app-root/src/node_modules/@angular/compiler/bundles/compiler.umd.js:1729:34)
at simplifyInContext (/opt/app-root/src/node_modules/@angular/compiler/bundles/compiler.umd.js:24979:23)
at StaticReflector.simplify (/opt/app-root/src/node_modules/@angular/compiler/bundles/compiler.umd.js:24991:13)
at StaticReflector.annotations (/opt/app-root/src/node_modules/@angular/compiler/bundles/compiler.umd.js:24418:41)
at NgModuleResolver.resolve (/opt/app-root/src/node_modules/@angular/compiler/bundles/compiler.umd.js:14750:70)
at CompileMetadataResolver.getNgModuleMetadata (/opt/app-root/src/node_modules/@angular/compiler/bundles/compiler.umd.js:15402:60)
at addNgModule (/opt/app-root/src/node_modules/@angular/compiler/bundles/compiler.umd.js:24268:58)
at /opt/app-root/src/node_modules/@angular/compiler/bundles/compiler.umd.js:24279:14
at Array.forEach (native)
at _createNgModules (/opt/app-root/src/node_modules/@angular/compiler/bundles/compiler.umd.js:24278:26)
at analyzeNgModules (/opt/app-root/src/node_modules/@angular/compiler/bundles/compiler.umd.js:24153:14)
at analyzeAndValidateNgModules (/opt/app-root/src/node_modules/@angular/compiler/bundles/compiler.umd.js:24163:35)
at AotCompiler.analyzeModulesAsync (/opt/app-root/src/node_modules/@angular/compiler/bundles/compiler.umd.js:23797:46)
at CodeGenerator.codegen (/opt/app-root/src/node_modules/@angular/compiler-cli/src/codegen.js:32:14)
at Function.NgTools_InternalApi_NG_2.codeGen (/opt/app-root/src/node_modules/@angular/compiler-cli/src/ngtools_api.js:73:30)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/watchpack/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.2.7 (node_modules/webpack-dev-server/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN localize-router-http-loader@0.0.3 requires a peer of localize-router@>=1.0.0-alpha.1 but none was installed.
npm WARN localize-router@2.0.0-RC.2 requires a peer of @angular/core@>=6.0.0 but none was installed.
npm WARN localize-router@2.0.0-RC.2 requires a peer of @angular/common@>=6.0.0 but none was installed.
npm WARN localize-router@2.0.0-RC.2 requires a peer of @angular/router@>=6.0.0 but none was installed.
npm WARN localize-router@2.0.0-RC.2 requires a peer of rxjs@^6.0.0 but none was installed.
npm WARN localize-router@2.0.0-RC.2 requires a peer of @ngx-translate/core@>=10.0.0 but none was installed.
npm WARN ajv-keywords@3.4.0 requires a peer of ajv@^6.9.1 but none was installed.
npm ERR! Linux 4.9.87-linuxkit-aufs
npm ERR! argv "/opt/rh/rh-nodejs6/root/usr/bin/node" "/opt/rh/rh-nodejs6/root/usr/bin/npm" "install"
npm ERR! node v6.11.3
npm ERR! npm v3.10.9
npm ERR! code ELIFECYCLE
npm ERR! tob-web@0.0.1 postinstall: `ng build --prod --base-href ${NG_BASE_HREF:-/} ${NG_BUILD_FLAGS:-} && cp dist/themes/_active/index.html dist/index.html`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the tob-web@0.0.1 postinstall script 'ng build --prod --base-href ${NG_BASE_HREF:-/} ${NG_BUILD_FLAGS:-} && cp dist/themes/_active/index.html dist/index.html'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the tob-web package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ng build --prod --base-href ${NG_BASE_HREF:-/} ${NG_BUILD_FLAGS:-} && cp dist/themes/_active/index.html dist/index.html
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs tob-web
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls tob-web
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /opt/app-root/src/npm-debug.log
Build failed
I have tried the fix mentioned in the issue #26. Still the issue is not addressed. I have the latest version of Node and NPM.