[nodejs] Re: loading static files named 'server.js'

2012-08-08 Thread yishayw
#x27;t conflict with the node.js namespace. On Tuesday, August 7, 2012 10:39:28 PM UTC+3, yishayw wrote: > > Hi, > > I have a site which uses a library with a static file named server.js. > Node.js seems to be treating this as a file which needs to be interpreted > on the server s

[nodejs] Re: loading static files named 'server.js'

2012-08-08 Thread yishayw
der. Thanks. On Tuesday, August 7, 2012 11:07:44 PM UTC+3, Roly Fentanes wrote: > > That looks like a compile error. What does the stack trace look like? I > doubt the error is coming from server.js > > On Tuesday, August 7, 2012 12:39:28 PM UTC-7, yishayw wrote: >> >> Hi,

[nodejs] loading static files named 'server.js'

2012-08-07 Thread yishayw
Hi, I have a site which uses a library with a static file named server.js. Node.js seems to be treating this as a file which needs to be interpreted on the server side rather than a static file. Hence, I get an error: 'Uncaught SyntaxError: Unexpected token < ' Is there any way around this?