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

TS compile of go gives error TS2345

$
0
0

@kgentes wrote:

I have a working angular app that imports the go library like so:

import * as go from 'gojs/release/go-debug';

Everything using the go-debug version of the library is fine and works great. However, as soon as I switch to importing the non-debug version of the library (like this):

import * as go from 'gojs/release/go';

At this point, I begin seeing the following compile errors from the TS compiler:

(142,28): error TS2345: Argument of type '() => void' is not assignable to parameter of type 'Constructor'.
  Type '() => void' provides no match for the signature 'new (...args: any[]): Object'.

Is this because of a licensing issue? Is there a reason I cannot use the non-debug version of the gojs library? Our company has purchased the license for the library, but I'm relatively new to learning how to import it.

Posts: 16

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles