Open Danjavia opened 7 years ago
Have you tried to include
if (typeof window !== 'undefined') {
var matchMediaPolyfill = function matchMediaPolyfill(mediaQuery) {
return {
media: mediaQuery,
matches: false,
addListener: function addListener() {},
removeListener: function removeListener() {}
};
};
window.matchMedia = window.matchMedia || matchMediaPolyfill;
}
}
in the beginning of your entry JavaScript file?
Yes, I Do, but not work! :(
Pls, can you helpme?
Your project includes the enquirejs dependency. But I have issues when try to run tests into my project because
I don't know how to solve this issue.
this is my code
I tried in all methods. Above, below but the same error ever.
Can U help me?
I cant to solve the issue putting
I include the above code in the line 49826 located at andt.js file into my node_modules And the problem is over. but this is not a good solution.
into enquirejs/src/include/wrap.js into the dist file for npm installed module. But it isn't a pretty solution.