I’m able to ‘successfully’ build a globe.gl app, but when trying to see it running, I get a “window is not defined” error. I have tried a lot of options, but no success. Any advice?
It looks like you’re trying run a javascript file that reference window on the server-side. window is available to JavaScript in the browser, not on the server-side (in Node).
Render Web Services expect an HTTP server to be started in the Start Command (Express, being commonly used in Node). Maybe you need to serve some HTML with your JavaScript files included to display your globe?
Thanks, Alan! Apologies for the delay in answering, as I was away on vacation.
I confess this is my first try with Node and Globe.gl, so I appreciate your clear answer and patience. So far, everything seems to run perfectly on my local computer, but not on Render. I included this html file (just renamed it “index.html” in case that was the issue) but still nothing.
Perhaps there’s something I need to add to the file? Again, just like that it runs without issues on my local computer, but perhaps Render needs something extra?