-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Class TraceDirective is neither an Angular component nor directive nor pipe #3282
Comments
@SDohle We are facing the same issue on angular 8. Did you find a workaround? |
@PixelBumper No. And no reaction from sentry to this issue so far. |
The same for me with Angular 10-11 =( |
After some testing, it appears that changing |
Disabling aot is not a solution, that makes bigger applications unusable. It' happening because this module is not aot/ivy compatible because it's directives needs to be redeclared in your code which is not allowed by the angular compiler (to enable features like tree shaking, buhnjdling lazy loading). |
This tells me nothing, tbh, as I never developed Angular application. |
Are there any updates to this? Is someone from Sentry even looking at it? |
Hey @mackelito, of course we are looking at all our issues (look how fast I am answering this 😄 ). I assume you are probably most curious about the time to resolution for this issue. The update is that this is already on our backlog and is being prioritized together with other initiatives that we are looking forward to soon bring to all of you. My rough estimate is that this will be resolved within our March releases. We will keep this issue open until then and post an update once this is resolved. |
Hi @mackelito, @SDohle, @PixelBumper and everyone else, thanks for your patience 🙂 I wanted to let you know that we've been investigating this issue in the last days and that we're working on finding a fix. Full transparency here: So far we haven't yet identified our best course of action but here's what we've found out so far:
In case you have suggestions, found other solutions/workarounds or have any other input, please feel free to mention it here. We'll keep you posted. |
…ar SDK (WEB-622) Switch to the Angular compiler (via Angular CLI) to ensure that all Angular 1st-class support items of the SDK are compiled in a way that the library are compatible with Angular. This fixes the compilation errors when using `TraceDirective` and `TraceModule` that are currently thrown on application compilation. Uses the Angular 10 compiler which ensures compatibility with Angular 10-13 apps. FIXES GH-3282 FIXES WEB-622
Hi everyone, this issue is tracked in #4644 as our solution will require a build procedure change. This will most likely be introduced with v7. In the meantime, please use the Please feel free to share your thoughts on our solution in the new issue. |
…ar SDK (WEB-622) Switch to the Angular compiler (via Angular CLI) to ensure that all Angular 1st-class support items of the SDK are compiled in a way that the library are compatible with Angular. This fixes the compilation errors when using `TraceDirective` and `TraceModule` that are currently thrown on application compilation. Uses the Angular 10 compiler which ensures compatibility with Angular 10-13 apps. FIXES GH-3282 FIXES WEB-622
Our docs are now updated to reflect the current state of |
…ar SDK (WEB-622) Switch to the Angular compiler (via Angular CLI) to ensure that all Angular 1st-class support items of the SDK are compiled in a way that the library are compatible with Angular. This fixes the compilation errors when using `TraceDirective` and `TraceModule` that are currently thrown on application compilation. Uses the Angular 10 compiler which ensures compatibility with Angular 10-13 apps. FIXES GH-3282 FIXES WEB-622
Hey everyone, we just released our first v7 beta |
Package + Version
@sentry/browser
@sentry/node
raven-js
raven-node
(raven for node)@sentry/angular
Version:
Description
Hi,
I try to use the TraceDirectives in an Angular 9 project. (just a blank project created with angular-cli)
If I declare the TraceDirective like suggested in the manual:
The Angular compiler complains:
Class TraceDirective is neither an Angular component nor directive nor pipe
That is something I would expect here because usually I would just import the module (exported @NgModule) instead of declaring a directive/component/pipe from a external module again in my own module.
Are Angular applications > 9 not supported by this module?
Thanks & best regards
Steffen
The text was updated successfully, but these errors were encountered: