Hello, I have recently upgraded my project to angular 7.x and after updating all my code everything works fine with dev build but I have a very strange error with prod build:
ERROR in : Error: Cannot handle async resource. angularCompilerOptions.enableResourceInlining requires all resources to be statically resolvable. at Object.get (S:\syscea\node_modules\@angular\compiler-cli\src\ transformers\inline_resources.js:33:31) at S:\syscea\node_modules\@angular\compiler-cli\src\transformers\ inline_resources.js:261:43 at Array.forEach (<anonymous>) at updateComponentProperties (S:\syscea\node_modules\@angular\compiler- cli\src\transformers\inline_resources.js:232:33) at updateDecorator (S:\syscea\node_modules\@angular\compiler-cli\src\ transformers\inline_resources.js:120:28) at S:\syscea\node_modules\@angular\compiler-cli\src\transformers\ inline_resources.js:95:32 at Object.visitNodes (S:\syscea\node_modules\typescript\lib\typescript. js:62256:48) at visitor (S:\syscea\node_modules\@angular\compiler-cli\src\ transformers\inline_resources.js:93:40) at visitNodes (S:\syscea\node_modules\typescript\lib\typescript.js:62256 :48) at visitLexicalEnvironment (S:\syscea\node_modules\typescript\lib\ typescript.js:62289:22) at Object.visitEachChild (S:\syscea\node_modules\typescript\lib\ typescript.js:62593:54) at S:\syscea\node_modules\@angular\compiler-cli\src\transformers\ inline_resources.js:105:23 at S:\syscea\node_modules\typescript\lib\typescript.js:1354:86 at reduceLeft (S:\syscea\node_modules\typescript\lib\typescript.js:1066: 30) at S:\syscea\node_modules\typescript\lib\typescript.js:1354:42 at transformRoot (S:\syscea\node_modules\typescript\lib\typescript.js: 79271:82) After hours to try to find out where I could have make a mistake the error seems to occurs whenever I use templateUrl or styleUrl to resolve to local file (as I used to do till now). So in ANY of my components if I use template: "my html code" to works fine, but as soon as I use this syntax templateUrl: "./test.html" the compilation does not work anymore. This is driving me crazy. If this was that simple I would have found hundreds of report about this issue but this is not the case so I suspect the issue is more complex. In the end I don't know if this is a bug with angular or angular-cli, or if it's an issue somewhere in my workspace. Any help would be very appreciated. Thanks. -- 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 angular+unsubscr...@googlegroups.com. To post to this group, send email to angular@googlegroups.com. Visit this group at https://groups.google.com/group/angular. For more options, visit https://groups.google.com/d/optout.