Organizational Research By

Surprising Reserch Topic

error jquery requires a window with a document


error jquery requires a window with a document  using -'jquery,node.js'

So everything was working just fine and great until doing npm update and now things do not work quite as they used to.

A little background: in my code I use jquery to parse textual html. I do not use a window and I don't use jsdom. It used to work just fine to do this:

$ = require("jquery");
$(html).find("<h1>").html("The title");


But now I get this:
jQuery requires a window with a document

How do I fix this?
    
asked Sep 18, 2015 by deepak gupta
0 votes
156 views



Related Hot Questions



Government Jobs Opening


...