Skip to content
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

Type '"url" | "authToken" | "org" | "project" | "vscRemote" | "dist" | "silent"' does not satisfy the constraint 'keyof SentryCliOptions' #4136

Closed
1 of 5 tasks
gajus opened this issue Nov 9, 2021 · 1 comment · Fixed by #4150
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK

Comments

@gajus
Copy link
Contributor

gajus commented Nov 9, 2021

Package + Version

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

Version:

6.14.1

Description

TypeScript error:

node_modules/@sentry/nextjs/node_modules/@sentry/webpack-plugin/index.d.ts:14:9 - error TS2344: Type '"url" | "authToken" | "org" | "project" | "vscRemote" | "dist" | "silent"' does not satisfy the constraint 'keyof SentryCliOptions'.
  Type '"vscRemote"' is not assignable to type 'keyof SentryCliOptions'.

 14         | 'url'
            ~~~~~~~
 15         | 'authToken'
    ~~~~~~~~~~~~~~~~~~~~~
...
 19         | 'dist'
    ~~~~~~~~~~~~~~~~
 20         | 'silent'
    ~~~~~~~~~~~~~~~~~~

How to reproduce the issue:

Use tsc with {"skipLibCheck": false}.

@AbhiPrasad
Copy link
Member

AbhiPrasad commented Nov 11, 2021

This is because we are on webpack plugin 1.18.1 on the NextJS SDK. Seems to have been fixed in 1.18.3, will fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Package: nextjs Issues related to the Sentry Nextjs SDK
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants