Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

window object in server version

#379

I tried to import the server version of right (http://rightjs.org/builds/current/right-server.js) in node with:

require('./right');

Executing the file, I get the following error:

/home/Gdipietro/right/right.js:221
  $ext(RightJS[natives[i]] = window[natives[i]], {
                      ^
ReferenceError: window is not defined
    at Object.<anonymous> (/home/Gdipietro/right/right.js:221:23)
    at Module._compile (module:426:23)
    at Module._loadScriptSync (module:436:8)
    at Module.loadSync (module:306:10)
    at loadModule (module:251:12)
    at require (module:374:12)
    at Object.<anonymous> (/home/Gdipietro/right/index.js:5:1)
    at Module._compile (module:426:23)
    at Module._loadScriptSync (module:436:8)
    at Module.loadSync (module:306:10)

Is it normal that server side version tries to access the window object? Thanks

Reported by Gustavo Di Pietro · October 14th, 2010 @ 12:34 PM

State: resolved
Milestone: 2.1.1 Release
Assigned to: nobody

Activity

  1. MadRabbit
    MadRabbit
    • Milestone set to 2.1.1 Release
    • Tag set to core, server
    • Milestone order changed from 196633 to 0

    ooopsydaisys, will be fixed

    October 14th, 2010 @ 02:07 PM

  2. MadRabbit
    MadRabbit

    Hey Gustavo,

    Just fixed the issue. There is a patched build at the attachment.

    October 15th, 2010 @ 03:14 PM

  3. MadRabbit
    MadRabbit
    • State changed from new to resolved

    October 15th, 2010 @ 03:17 PM

  4. Gustavo Di Pietro
    Gustavo Di Pietro
    • Milestone order changed from 3 to 0

    works great,
    gustavo

    October 18th, 2010 @ 12:16 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.