require('jsdom/browser/domtohtml') fails #1

Tug opened this Issue Apr 5, 2011 · 2 comments

2 participants

Tug commented Apr 5, 2011

When loading express-jsdom :
var express = require('express');
var app = express.createServer();
var dom = require('express-jsdom')(app);

I have this error :
Error: Cannot find module 'jsdom/browser/domtohtml'

jsdom and express-jsdom are installed with npm and I'm on mac os x.

Any idea where it could come from?

Tug commented Apr 5, 2011

require('jsdom/lib/jsdom/browser/domtohtml') seems to work.
Any idea why ?
EDIT: application starts without error but a simple :
app.get('/', function(req, res, next){
res.send('HELLO WORLD');
does not work: GET / 404
(only when requiring express-jsdom)


NPM >= 1.0.0 no longer exposes module internals. Closed by 2787f7c

@fgnass fgnass closed this Apr 5, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment