Hey guys, I have a problem with angular universal. I manage to make server 
side rendering work on a fresh new project and its compiling without any 
errors, but when i put the exact same code on an another project i get  a 
compiler error wich is listed below:

Error: Compilation failed. Resource file not found: E:/Projects/MNAC/
MNAC_public/src/path
    at ModuleResolutionHostAdapter.readResource (E:\Projects\MNAC\
MNAC_public\node_modules\@angular\compiler-cli\src\compiler_host.js:386:19)
    at CompilerHost.loadResource (E:\Projects\MNAC\MNAC_public\node_modules\
@angular\compiler-cli\src\compiler_host.js:249:33)
    at Object.get (E:\Projects\MNAC\MNAC_public\node_modules\@angular\
compiler\bundles\compiler.umd.js:25788:107)
    at DirectiveNormalizer._fetch (E:\Projects\MNAC\MNAC_public\node_modules
\@angular\compiler\bundles\compiler.umd.js:14114:43)
    at E:\Projects\MNAC\MNAC_public\node_modules\@angular\compiler\bundles\
compiler.umd.js:14236:68
    at Array.map (native)
    at DirectiveNormalizer._loadMissingExternalStylesheets (E:\Projects\MNAC
\MNAC_public\node_modules\@angular\compiler\bundles\compiler.umd.js:14236:14
)
    at E:\Projects\MNAC\MNAC_public\node_modules\@angular\compiler\bundles\
compiler.umd.js:14239:26
    at process._tickCallback (internal/process/next_tick.js:103:7)
    at Module.runMain (module.js:607:11)
Compilation failedEnter code here...

What i want to mention is that both projects ware generated with scss from 
the start and both have same modules in package.json and run same commands: 
    "prestart": "ng build --env=prod && ngc",
   "start": "ts-node src/server.ts"

The problem is that on the secound project who has multiple components and 
stuff i recevive the error posted above :(

Can i have soma suggestions on how to get this solved please. Thank you.

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to