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

GoJS 1.6.3 and Electron

$
0
0

@chzh.austin wrote:

I am using GoJS 1.6.3 and I see your example with Electron.

go = require("gojs"); // assumes: $ npm install gojs

My IDE is VS code, which has a really strong support on intellisense. It complains that gojs is not a module. I then go to go.d.ts to see the definition, the module is defined as "go" instead of "gojs". When I change this line to go = require("go"), my compiler is happy but I cannot launch it through Electron. But if I just double-click on html, it still works.

Uncaught ReferenceError: go is not defined

Do you have any idea? This is currently blocking my work.

Thanks,
Chuan

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles