Skip to content

Cannot find name 'Location' in beforeNavigate option #2696

@zeldaleung

Description

@zeldaleung

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other: @sentry/apm

Version:

5.18.0

Description

No issues building with the previous version (5.17.0), but following an upgrade to 5.18.0, the following error message is received on build:

../node_modules/@sentry/apm/dist/integrations/tracing.d.ts:99:30 - error TS2304: Cannot find name 'Location'.
99     beforeNavigate(location: Location): string;

Tried adding dom typings to compilerOptions which allowed the package to build but you really shouldn't need to add dom typings for a node application :(

Note: seems related to #2691

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