Angular AOT Relative paths in components
I'm asking here because I could't find complete documentation online. The example here is too simple. I've an app with several components and some modules. After compile with ngc, I had lot of errors. The way I found to fix them was use relative paths. So I use ' moduleId: module.id, ' in all my components. But now the compiler tells me: ' Cannot find name 'module' ' As I understand, that is becuase I'm declaring the following compile options for AoT: { "compilerOptions": { "target": "es5", ---> "module": "es2015", "moduleResolution": "node", "sourceMap": true, "emitDecoratorMetadata": true,