Skip to content

Can't compile angular project after upgrading to sentry 7.1.0 from 6.19.7 #5227

@jahusa02

Description

@jahusa02

Is there an existing issue for this?

How do you use Sentry?

Self-hosted/on-premise

Which package are you using?

@sentry/angular

SDK Version

7.1.0

Framework Version

7.1.0

Link to Sentry event

No response

Steps to Reproduce

  1. create new Angular 13 project
  2. install @sentry/angular @sentry/tracing
  3. call sentry.init in main.ts (followed instructions on https://docs.sentry.io/platforms/javascript/guides/angular/)
  4. serve the application

Expected Result

Should compile and throw no errors

Actual Result

When I serve the application, the cli complains that sentry has to be processed and I should encourage you to publish an Ivy distribution.

Later the CLI throws following Error:
terminal

My package.json:

{
  "name": "test-14",
  "version": "0.0.0",
  "scripts": {
    "ng": "ng",
    "start": "ng serve",
    "build": "ng build",
    "watch": "ng build --watch --configuration development",
    "test": "ng test"
  },
  "private": true,
  "dependencies": {
    "@angular/animations": "~13.3.0",
    "@angular/common": "~13.3.0",
    "@angular/compiler": "~13.3.0",
    "@angular/core": "~13.3.0",
    "@angular/forms": "~13.3.0",
    "@angular/platform-browser": "~13.3.0",
    "@angular/platform-browser-dynamic": "~13.3.0",
    "@angular/router": "~13.3.0",
    "@sentry/angular": "^7.1.0",
    "@sentry/tracing": "^7.1.0",
    "rxjs": "~7.5.0",
    "tslib": "^2.3.0",
    "zone.js": "~0.11.4"
  },
  "devDependencies": {
    "@angular-devkit/build-angular": "~13.3.7",
    "@angular/cli": "~13.3.7",
    "@angular/compiler-cli": "~13.3.0",
    "@types/jasmine": "~3.10.0",
    "@types/node": "^12.11.1",
    "jasmine-core": "~4.0.0",
    "karma": "~6.3.0",
    "karma-chrome-launcher": "~3.1.0",
    "karma-coverage": "~2.1.0",
    "karma-jasmine": "~4.0.0",
    "karma-jasmine-html-reporter": "~1.7.0",
    "typescript": "~4.6.2"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions