@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 nullIs 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