New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript compile error: "... node_modules/gojs/release/go.d.ts' is not a module" #26
Comments
I'm using TypeScript 1.8.35, and when the go.d.ts file includes, at the end of the file:
I do not get an error when compiling the following code:
And the code executes correctly too. Are you using modules, and if so, how? |
I'm seeing the same problem. The
Typescript 1.8.10.
GoJs 1.6.15.
Node v4.4.7.
|
Which fix "suggested at the top" are you talking about?
On Sep 13, 2016 05:25, "Dan Kirkham" notifications@github.com wrote:
|
|
How are you importing GoJS in your TypeScript code? Later today I can experiment how such a change would work in AMD
On Sep 13, 2016 05:45, "Dan Kirkham" notifications@github.com wrote:
|
With ES6 syntax; |
OK, I still cannot reproduce that TSC error, and that error you quoted does not make sense anyway. And a lot of other TypeScript definition files wrap their But it does seem to work without that module declaration, so I'll change it for 1.6.17. |
I use Typescript 1.8 but to fix this issue I need to change following lines in go.d.ts file:
to
export = go;
The text was updated successfully, but these errors were encountered: