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
169 views



Related Hot Questions

6 Answers

0 votes
NULL
answered Sep 18, 2015 by okesh.badhiye
0 votes
NULL
answered Sep 18, 2015 by dahiyabecomp
0 votes
NULL
answered Sep 18, 2015 by atulpariharmca
0 votes
NULL
answered Sep 18, 2015 by bhavin
0 votes
NULL
answered Sep 18, 2015 by r3tt
0 votes
NULL
answered Sep 18, 2015 by balvant maurya

...