[BUG] Using NotificationRequest
throws a TypeError: NotificationRequest is not a constructor
#1464
Labels
bug
Something isn't working
Describe the bug
Using
NotificationRequest
throws aTypeError: NotificationRequest is not a constructor
It's a type issue, It seems like NotificationRequest generated type is wrong and don't support its use on ESM modules properly
To Reproduce
Execute it with
npx tsx script.ts
Expected behavior
It should work and show
{ notificationItemContainers: [], live: 'false' }
but it's throwing this error:I workaround with this:
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: