将 react-slick 滑块添加到我的 webpack 项目后,我的 chai 测试开始失败
C:\project\proj\js\node_modules\enquire.js\dist\enquire.js:226
throw new Error('matchMedia not present, legacy browsers require a polyfill');
^
Error: matchMedia not present, legacy browsers require a polyfill
at Object.MediaQueryDispatch (C:\project\proj\js\node_modules\enquire.js\dist\enquire.js:226:19)
at C:\project\proj\js\node_modules\enquire.js\dist\enquire.js:291:9
at i (C:\project\proj\js\node_modules\enquire.js\dist\enquire.js:11:20)
at Object.<anonymous> (C:\project\proj\js\node_modules\enquire.js\dist\enquire.js:21:2)
此处推荐的滑块组件的作者对此问题的唯一修复是开玩笑。我已经在我的环境中尝试过,但它没有用。