Skip to content
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

(bug): TypeError: Viz is not a function #48

Closed
vogloblinsky opened this issue Jan 30, 2017 · 0 comments
Closed

(bug): TypeError: Viz is not a function #48

vogloblinsky opened this issue Jan 30, 2017 · 0 comments

Comments

@vogloblinsky
Copy link
Contributor

vogloblinsky commented Jan 30, 2017

Calling ngd-transformer directly for a simple module of an angular application breaks with :
Viz is not a function at DotEngine.generateSVG (/home/vogloblinsky/Documents/www/TMP/compodoc/compodoc/node_modules/@compodoc/ngd-transformer/dist/engines/dot/dot.js:179:22)

Reproduced with a simple Node.js script, using twice new ngdT.DotEngine().

Moving viz.js require from this line https://github.com/compodoc/ngd/blob/master/src/modules/transformer/src/engines/dot/dot.ts#L227 to the top https://github.com/compodoc/ngd/blob/master/src/modules/transformer/src/engines/dot/dot.ts#L4 solve the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant