Title: Class TraceDirective is neither an Angular component nor directive nor pipe · Issue #3282 · getsentry/sentry-javascript · GitHub
Open Graph Title: Class TraceDirective is neither an Angular component nor directive nor pipe · Issue #3282 · getsentry/sentry-javascript
X Title: Class TraceDirective is neither an Angular component nor directive nor pipe · Issue #3282 · getsentry/sentry-javascript
Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javascript/releases Provide a link to the aff...
Open Graph Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
X Description: Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/3282
X: @github
Domain: github.com
IPv4 address: 140.82.113.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Class TraceDirective is neither an Angular component nor directive nor pipe","articleBody":"\u003c!-- Requirements: please go through this checklist before opening a new issue -->\r\n\r\n- [x] Review the documentation: https://docs.sentry.io/\r\n- [x] Search for existing issues: https://github.com/getsentry/sentry-javascript/issues\r\n- [x] Use the latest release: https://github.com/getsentry/sentry-javascript/releases\r\n- [ ] Provide a link to the affected event from your Sentry account\r\n\r\n## Package + Version\r\n\r\n- [ ] `@sentry/browser`\r\n- [ ] `@sentry/node`\r\n- [ ] `raven-js`\r\n- [ ] `raven-node` _(raven for node)_\r\n- [x] `@sentry/angular`\r\n\r\n### Version:\r\n\r\n```\r\n6.2.0\r\n```\r\n\r\n## Description\r\n\r\nHi,\r\nI try to use the TraceDirectives in an Angular 9 project. (just a blank project created with angular-cli)\r\nIf I declare the TraceDirective like suggested in the manual:\r\n\r\n```\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { NgModule } from '@angular/core';\r\nimport { AppRoutingModule } from './app-routing.module';\r\nimport { AppComponent } from './app.component';\r\nimport {Router} from '@angular/router';\r\nimport * as Sentry from '@sentry/angular';\r\n\r\n@NgModule({\r\n declarations: [Sentry.TraceDirective],\r\n imports: [\r\n BrowserModule,\r\n AppRoutingModule\r\n ],\r\n providers: [\r\n {\r\n provide: Sentry.TraceService,\r\n deps: [Router],\r\n },\r\n ],\r\n bootstrap: [AppComponent]\r\n})\r\nexport class AppModule { }\r\n```\r\n\r\nThe Angular compiler complains:\r\n\r\n_Class TraceDirective is neither an Angular component nor directive nor pipe_\r\n\r\nThat 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.\r\n\r\nAre Angular applications > 9 not supported by this module?\r\n\r\nThanks & best regards\r\nSteffen","author":{"url":"https://github.com/SDohle","@type":"Person","name":"SDohle"},"datePublished":"2021-02-25T11:53:42Z","url":"https://github.com/getsentry/sentry-javascript/issues/3282"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ad856ecd-7e9c-5c8e-b470-343354a5e237 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E416:25A901:95205:C942B:6B042BD2 |
| html-safe-nonce | e85ff0490c2c27dbf3b6ffd3cc5cbca6c5fcb560bda7dfb34ceb159d6339c734 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNDE2OjI1QTkwMTo5NTIwNTpDOTQyQjo2QjA0MkJEMiIsInZpc2l0b3JfaWQiOiI1NDc1ODE4ODI4Njk5MjgyMzg2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 792316b272404e2b1dacec5526038acdd1c65c96b9f0b5096fdd8b11b820949f |
| hovercard-subject-tag | issue:816367251 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/3282/issue_layout |
| twitter:image | https://opengraph.githubassets.com/26cf9d606419b3a157ddaec7017269d9b8e118cbb0fc0533aad76fd263fa81b1/getsentry/sentry-javascript/issues/3282 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/26cf9d606419b3a157ddaec7017269d9b8e118cbb0fc0533aad76fd263fa81b1/getsentry/sentry-javascript/issues/3282 |
| og:image:alt | Review the documentation: https://docs.sentry.io/ Search for existing issues: https://github.com/getsentry/sentry-javascript/issues Use the latest release: https://github.com/getsentry/sentry-javas... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SDohle |
| hostname | github.com |
| expected-hostname | github.com |
| None | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width