Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module './app.module' #86

Open
deepakpapola opened this issue Dec 1, 2017 · 0 comments
Open

Cannot find module './app.module' #86

deepakpapola opened this issue Dec 1, 2017 · 0 comments

Comments

@deepakpapola
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant