Skip to content

[5.7.1] Typescript build failure: TS1084: Invalid 'reference' directive syntax #2287

@spradlin-dev

Description

@spradlin-dev

Package + Version

  • @sentry/browser

Version:

5.7.1

Description

Upon updating @sentry/browser to latest (from 5.6.3 to 5.7.1) all builds are failing in typescript build:

ERROR in /var/jenkins/workspace/NavisphereCarrier.Website.Beta.PR/node_modules/@sentry/utils/dist/is.d.ts
[tsl] ERROR in /var/jenkins/workspace/NavisphereCarrier.Website.Beta.PR/node_modules/@sentry/utils/dist/is.d.ts(1,1)
      TS1084: Invalid 'reference' directive syntax.

ERROR in /var/jenkins/workspace/NavisphereCarrier.Website.Beta.PR/node_modules/@sentry/utils/dist/misc.d.ts
[tsl] ERROR in /var/jenkins/workspace/NavisphereCarrier.Website.Beta.PR/node_modules/@sentry/utils/dist/misc.d.ts(1,1)
      TS1084: Invalid 'reference' directive syntax.

tsconfig setup:

{
  "extends": "./tsconfig.json",
  "compilerOptions": {
    "module": "esnext" // this is required for code splitting
  },
  "exclude": [
    "node_modules",
    "**/*.spec.ts",
    "**/*.spec.tsx",
    "**/*.mock.ts",
    "dist",
    "test"
  ]
}
{
  "compileOnSave": false,
  "compilerOptions": {
    "jsx": "react",
    "sourceMap": true,
    "outDir": "./dist/out-tsc",
    "baseUrl": "src",
    "keyofStringsOnly": true,
    "paths": {
      "app/*": ["app/*"],
      "test/*": ["../test/*"]
    },
    "skipLibCheck": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "downlevelIteration": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2017.object",
      "es2016",
      "dom"
    ],
    "noImplicitAny": false,
    "suppressImplicitAnyIndexErrors": true
  },
  "exclude": [
    "node_modules"
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions