angular-ssr
angular-ssr copied to clipboard
Cannot find module './app.module'
after run this code
./node_modules/.bin/ng-render
[info] Rendering application from source (working path: /tmp/32f7115624bab) [=0l
Unhandled Promise rejection: Cannot find module './app.module' ; Zone: <root> ; Task: Promise.then ; Value: { Error: Cannot find module './app.module'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/dp/Desktop/out-tsc/app/app/app.module.ngfactory.ts:2:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at NgcModuleLoader.loadModule (/home/dp/Desktop/fernwehsoul/node_modules/angular-ssr/source/application/compiler/ngc/loader.ts:29:26)
at NgcModuleLoader.load (/home/dp/Desktop/fernwehsoul/node_modules/angular-ssr/source/application/compiler/ngc/loader.ts:12:17)
at /home/dp/Desktop/fernwehsoul/node_modules/angular-ssr/source/application/builder/from-source.ts:37:22
at ZoneDelegate.invoke (/home/dp/Desktop/fernwehsoul/node_modules/zone.js/dist/zone-node.js:392:26)
code: 'MODULE_NOT_FOUND',
__zone_symbol__currentTask:
ZoneTask {
_zone:
Zone {
_properties: {},
_parent: null,
_name: '<root>',
_zoneDelegate: [Object] },
runCount: 0,
_zoneDelegates: null,
_state: 'notScheduled',
type: 'microTask',
source: 'Promise.then',
data: undefined,
scheduleFn: undefined,
cancelFn: null,
callback: [Function],
invoke: [Function] } } Error: Cannot find module './app.module'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/home/dp/Desktop/out-tsc/app/app/app.module.ngfactory.ts:2:1)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at NgcModuleLoader.loadModule (/home/dp/Desktop/fernwehsoul/node_modules/angular-ssr/source/application/compiler/ngc/loader.ts:29:26)
at NgcModuleLoader.load (/home/dp/Desktop/fernwehsoul/node_modules/angular-ssr/source/application/compiler/ngc/loader.ts:12:17)
at /home/dp/Desktop/fernwehsoul/node_modules/angular-ssr/source/application/builder/from-source.ts:37:22
at ZoneDelegate.invoke (/home/dp/Desktop/fernwehsoul/node_modules/zone.js/dist/zone-node.js:392:26)
cannot find ./app.module which is root module of app.