Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

GoJS for NodeJS Server (server-side)

$
0
0

@PinkTiu wrote:

I have a node server which uses a package that includes the GoJS libary.

After starting the server I got a error message window is not defined. This seems logical because GoJS needs a browser environment which NodeJS doesn't provide.

So I added this package: https://github.com/lukechilds/browser-env
This simulates a browser environment with the "window" object and other stuff.

However, it still doesn't work. Now I get the error message right after startup:
Cannot set property 'fillStyle' of null

Is there any hint for solving this problem? I'm also completely open to other methods running GoJS on a NodeJS server.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles