-
Notifications
You must be signed in to change notification settings - Fork 217
Exception during NgModule config parsing with AoT apps #1070
Comments
Is this possibly related to #733? I got the same error until I followed the readme to update angularCompilerOptions.debug in tsconfig.json to disable AoT compilation. |
The error is cause because of this code in const resolveNgModuleDecoratorConfig = (m) => {
if (m.decorators) {
return m.decorators.reduce((prev, curr, idx, decorators) =>
prev ? prev : decorators[idx].type.prototype.toString() === '@NgModule' ?
(decorators[idx].args || [])[0] : null, null);
}
// problem occurs on this line
return Reflect.getMetadata('annotations', m).find(decorator => decorator.toString() === '@NgModule');
}; When an app is compiled with AoT, |
@riavalon I made a change just yesterday to stop that undefined reference error, so at least that won't happen anymore :) https://github.com/rangle/augury/pull/1134/files#diff-d55af29576cfd559bea03764b5c7fc9bR23 |
Great, sounds good @stevenkampen We talked about this one a bit more offline: As there is no way currently for us to get access to metadata when an app is compiled in AoT, we're going to instead show an informative error message in the NgModules tab and improve the documentation around it. |
@thaoula reported on #1063 that an exception occurs while initializing Augury for AoT apps.
The text was updated successfully, but these errors were encountered: