Apricot
                                
                                 Apricot copied to clipboard
                                
                                    Apricot copied to clipboard
                            
                            
                            
                        require jsdom and htmlparser not working
https://github.com/silentrob/Apricot/blob/0763f9bf166a11aa1540b60e7fb8b6c1d69cf776/lib/apricot.js#L10
var dom = require('jsdom-0.1.2/jsdom/level1/core').dom.level1.core;
should be
var dom = require('jsdom/jsdom/level1/core').dom.level1.core;
or
var dom = require('[email protected]/jsdom/level1/core').dom.level1.core;
I'm also encountering this issue. Please make the recommended changes.
Still an issue :(
Agreed. Author should try to install this from npm and see if it works our of the box (hint: it doesn't).
I've got the same issue. Did somebody find a clue ? Thanks.
It's a simple enough fix...
line 6, in apricot.js:
var dom = require('jsdom').dom.level1.core,
     browser = require('jsdom/lib/jsdom/browser/index').windowAugmentation(dom);
Still would be nice if it worked in the npm version though...
Why not use jsdom.env()?
Just having a look at that now - wow :)
https://github.com/tmpvar/jsdom
It looks like silentrob's pulled in a few commits recently, has anyone tried out the updated versions?