GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Angular error when adding a screenshot in user feedback dialog · Issue #12713 · getsentry/sentry-javascript

Angular error when adding a screenshot in user feedback dialog #12713

New issue
Copy link
New issue
Copy link
Closed
Closed
Angular error when adding a screenshot in user feedback dialog#12713
Copy link
Assignees
ryan953
Labels
Feature: User Feedback

Description

@Grandmac
Grandmac
opened on Jul 1, 2024
Issue body actions

Is there an existing issue for this?

  • I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues
  • I have reviewed the documentation https://docs.sentry.io/
  • I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/angular

SDK Version

8.13.0

Framework Version

Angular 17 and 18

Link to Sentry event

https://cgr-sentry.sentry.io/share/issue/ca485e374ad24ae8ba6692ead3d39a0d/

SDK Setup/Reproduction Example

Angular 17 https://stackblitz.com/edit/angular-17-starter-project-rjdi4h?file=src%2Fmain.ts
Angular 18 https://stackblitz.com/edit/stackblitz-starters-qzpdva?file=src%2Fmain.ts

Steps to Reproduce

Add Sentry.feedbackIntegration({}) to Sentry.init integrations section, open the feedback integration and try to do a screenshot with the "add a screenshot" button

Expected Result

Add a screenshot to the user feedback

Actual Result

Error in console

preview-b991ddc586eca.js:2 ReferenceError: h is not defined
at b$1.CropCorner [as constructor] (ScreenshotEditor.tsx:341:32)
at b$1.q$1 [as render] (preact.mjs:1:9009)
at M (preact.mjs:1:6532)
at P$1 (preact.mjs:1:1961)
at z$1 (preact.mjs:1:8257)
at M (preact.mjs:1:7079)
at P$1 (preact.mjs:1:1961)
at z$1 (preact.mjs:1:8257)
at M (preact.mjs:1:7079)
at P$1 (preact.mjs:1:1961)
at z$1 (preact.mjs:1:8257)
at M (preact.mjs:1:7079)
at P$1 (preact.mjs:1:1961)
at M (preact.mjs:1:6746)
at P$1 (preact.mjs:1:1961)
at z$1 (preact.mjs:1:8257)
at M (preact.mjs:1:7079)
at P$1 (preact.mjs:1:1961)
at M (preact.mjs:1:6746)
at w$1 (preact.mjs:1:1110)
at C$1 (preact.mjs:1:1626)
at _ZoneDelegate.invoke (zone.umd.js:411:30)
at Zone.run (zone.umd.js:165:47)
at eval (zone.umd.js:1314:38)
at _ZoneDelegate.invokeTask (zone.umd.js:445:35)
at Zone.runTask (zone.umd.js:210:51)
at drainMicroTaskQueue (zone.umd.js:634:39)
at ZoneTask.invokeTask [as invoke] (zone.umd.js:531:25)
at invokeTask (zone.umd.js:1705:22)
at globalCallback (zone.umd.js:1748:35)
at HTMLButtonElement.globalZoneAwareCallback (zone.umd.js:1772:20)

Reacted by Lucas Vogel and Dennis Heer

Activity

Next
  1. Grandmac
    added
    Type: Bug
    on Jul 1, 2024
  2. getsantry
    added
    Waiting for: Product Owner
    on Jul 1, 2024
  3. getsantry
    added this to GitHub Issues with 👀 3on Jul 1, 2024
  4. getsantry
    moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jul 1, 2024
  5. github-actions
    added
    Package: angular
    on Jul 1, 2024
  6. mydea
    added
    Feature: User Feedback
    on Jul 1, 2024
  7. getsantry
    removed
    Waiting for: Product Owner
    on Jul 1, 2024
  8. bruno-garcia commented on Jul 2, 2024

    @bruno-garcia
    bruno-garcia
    on Jul 2, 2024
    Member
    More actions

    Thanks for raising.
    The minified frames will make it challenging I imagine, this is where it points to at least we can see in the stack trace you shared:

    https://github.com/getsentry/sentry-javascript/blob/8.13.0/packages/feedback/src/screenshot/components/ScreenshotEditor.tsx#L351

  9. GautheyValentin commented on Jul 3, 2024

    @GautheyValentin
    GautheyValentin
    on Jul 3, 2024
    More actions

    The package @sentry/nextjs have the same issue
    (Same trace than the opener)

    Reacted by Nissan Dookeran
  10. getsantry
    added
    Waiting for: Product Owner
    on Jul 3, 2024
  11. mydea commented on Jul 4, 2024

    @mydea
    mydea
    on Jul 4, 2024
    Member
    More actions

    We'll take a look!

  12. getsantry
    removed
    Waiting for: Product Owner
    on Jul 4, 2024
  13. getsantry
    moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jul 4, 2024
  14. nissan commented on Jul 4, 2024

    @nissan
    nissan
    on Jul 4, 2024
    More actions

    Also having the issue within a NextJS app, the error occurs when I click on the "Add Screenshot" button only though, otherwise it does work.

  15. getsantry
    added
    Waiting for: Product Owner
    on Jul 4, 2024
  16. 2 remaining items

  17. andreiborza commented on Jul 5, 2024

    @andreiborza
    andreiborza
    on Jul 5, 2024
    Member
    More actions

    Thanks for reporting this, it's also broken in react. I'll take a look at this.

    Reacted by Lucas Vogel
  18. getsantry
    removed
    Waiting for: Product Owner
    on Jul 5, 2024
  19. getsantry
    moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jul 5, 2024
  20. Lms24
    removed
    Package: angular
    on Jul 5, 2024
  21. andreiborza
    added a commit that references this issue on Jul 5, 2024

    fix(feedback): Add missing `h` import in `ScreenshotEditor` (#12713)

    bd415e2
  22. iamishaanagarwal commented on Jul 8, 2024

    @iamishaanagarwal
    iamishaanagarwal
    on Jul 8, 2024
    More actions

    Having this issue in nextjs with the newer version, it was working in the older version

  23. getsantry
    added
    Waiting for: Product Owner
    on Jul 8, 2024
  24. getsantry
    moved this to Waiting for: Product Owner in GitHub Issues with 👀 3on Jul 8, 2024
  25. andreiborza commented on Jul 8, 2024

    @andreiborza
    andreiborza
    on Jul 8, 2024
    Member
    More actions

    We are working on it, see #12784 for a status.

    Reacted by Lucas Vogel
  26. getsantry
    removed
    Waiting for: Product Owner
    on Jul 8, 2024
  27. getsantry
    moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Jul 8, 2024
  28. ryan953
    self-assigned this
    on Jul 8, 2024
  29. ryan953
    added a commit that references this issue on Jul 8, 2024

    fix(feedback): Add missing `h` import in `ScreenshotEditor` (#12713) (#…

    3883517
  30. Grandmac commented on Jul 9, 2024

    @Grandmac
    Grandmac
    on Jul 9, 2024
    Author
    More actions

    Thank you all, it's resolved in version 8.16.0 🎉

    Reacted by Andrei, Lucas Vogel, Valentin Gauthey, Daniil Sitdikov and Dennis Heer
  31. Grandmac
    closed this as completedon Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @ryan953
    ryan953

Labels

Feature: User Feedback

Projects

  • GitHub Issues with 👀 3
    Status
    No status
    Show more project fields

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.