question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReferenceError: PointerEvent is not defined

See original GitHub issue

Issue :

After upgrading to Jest 24, I get this Typescript error:

ReferenceError: PointerEvent is not defined

I use a tsconfig.spec.json (which seems to be loaded by ts-jest) which contains "lib": ["es2017", "dom"] in compilerOptions.

Expected behavior :

I expect PointerEvent to be defined, as it is part of the TypeScript dom lib.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:28

github_iconTop GitHub Comments

1reaction
wthocommented, Mar 24, 2019

Ok, I was able to reproduce your issue, will have a look at it.

1reaction
ahnpnlcommented, Mar 23, 2019

I see often some issues about configuration and examples. Perhaps it’s good that in the example of this repo we put example projects with base configuration so one can check and follow it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PointerEvent is not defined · Issue #1035 · kulshekhar/ts-jest
Issue : After upgrading to Jest 24, I get this Typescript error: ReferenceError: PointerEvent is not defined I use a tsconfig.spec.json ...
Read more >
javascript - How to substitute the PointerEvent in Jest ...
If I test this setup with jest it always throws me the error ReferenceError: PointerEvent is not defined . I can fix this...
Read more >
Solution for “Error: The argument type 'PointerEvent' can't be ...
Solution for “Error: The argument type 'PointerEvent' can't be assigned to the ... Solution for “ReferenceError: util$4 is not defined” for Svelte apps....
Read more >
ReferenceError: PointerEvent is not defined - - Bountysource
ReferenceError : PointerEvent is not defined. I use a tsconfig.spec.json (which seems to be loaded by ts-jest) which contains "lib": ...
Read more >
PointerEvent - Web APIs | MDN
Chrome Edge PointerEvent Full support. Chrome55. Toggle history Full support. Edge12. T... PointerEvent() constructor Full support. Chrome55. Toggle history Full support. Edge12. T... altitudeAngle. Experimental Full...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found