-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
@sentry/browser
's require
types are missing
#12295
Labels
Comments
github-actions
bot
added
the
Package: browser
Issues related to the Sentry Browser SDK
label
May 30, 2024
Huh, good catch - sorry about that, it seems that a typo sneaked in there. We'll fix this! |
mydea
added a commit
that referenced
this issue
May 31, 2024
c298lee
pushed a commit
that referenced
this issue
Jun 4, 2024
Fix released with https://github.com/getsentry/sentry-javascript/releases/tag/8.8.0 - sorry for the trouble! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is there an existing issue for this?
How do you use Sentry?
Sentry Saas (sentry.io)
Which SDK are you using?
@sentry/browser
SDK Version
8.7.0
Framework Version
No response
Link to Sentry event
No response
SDK Setup
No response
Steps to Reproduce
Init a new node project (I used node 20 with yarn 1)
run:
run:
create
tsconfig.json
:create
index.ts
:You'll find that the project can't compile because
import * as Sentry from "@sentry/browser";
errors becauseCould not find a declaration file for module '@sentry/browser'.
This is because the
package.json
for '@sentry/browser' (the published version, not the version in this repo) has this exports section:which specifies that
require
types live at./build/npm.types/index.d.ts
, but this file doesn't exist.Maybe related, but the published
package.json
doesn't match what's in this repo at time of release. Yikes.Expected Result
types should work
Actual Result
types don't work
The text was updated successfully, but these errors were encountered: