matchMedia polyfill stopped working with latest release
See original GitHub issueHi, we have saw this new error started today:
/local/workspace/minted_ui-test/node_modules/enquire.js/dist/enquire.js:116
if(!matchMedia) {
^
ReferenceError: matchMedia is not defined
The polyfill for matchMedia
does not work any more. https://github.com/WickyNilliams/enquire.js/issues/82
Issue Analytics
- State:
- Created 7 years ago
- Reactions:23
- Comments:10 (4 by maintainers)
Top Results From Across the Web
Jest testing with react: matchMedia not present, legacy ...
Any suggestions to fix? matchMedia not present, legacy browsers require a polyfill at new MediaQueryDispatch (node_modules/enquire.js/src/ ...
Read more >matchmedia-polyfill - npm
Latest version: 0.3.2, last published: 4 years ago. Start using matchmedia-polyfill in your project by running `npm i matchmedia-polyfill`.
Read more >Update the window.matchMedia polyfill to include the listener ...
window.matchMedia and the MediaQueryList object that it returns have a specific interface. ... The polyfill included in the respond.min.js file in ...
Read more >Chapter 1. The Problem with Native JavaScript APIs - O'Reilly
Paul Irish attempted to create a polyfill for matchMedia() , defining his own function with that name if one didn’t already exist. There...
Read more >Error in IE11 for matchMedia - javascript - Stack Overflow
In IE9 'window.matchMedia' is undefined, so that you have to add supported mediaListeners to your document. matchMedia polyfill will works for ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Should be fixed in
v2.1.6
. Thanks to @Edward67 for the PR!Using
enquire.js@2.1.1
@WickyNilliams