I am trying a component inside runkit.com. As it is visible from the image, the platform tells me ...
Fix: Use global instead of window. RunKit is a node environment, so window and other browser features won’t exist. If you’re just trying to access the global object, you can simply use global instead.
This is the code pasted:
var window = {};
const QueryQl = require("queryfilters/queryql")
var q = new QueryQl();
q.json({
'ciao': 'mondo'
});
q.getQueryString();
How can I fix this?