Typedoc: Getting error main.js:5 Uncaught TypeError: typedoc.Application is not a constructor

Created on 23 Nov 2016  路  6Comments  路  Source: TypeStrong/typedoc

I created a very simple test.d.ts file with the following content:

declare module MyModule {
    export interface SomeItem {
        type: string;
        timestamp: number;
        status: Date;
    }
}

Added a package.json file that specified devDependencies of only typedoc: 0.5.0

Ran the following command:

node_modules\.bin\typedoc --out OUTPUT test.d.ts --experimentalDecorators --target es5 --includeDeclarations --mode file --name 'Random'

It generated some html documentation and I was able to browse the content but I could not perform searches. I see the following error in the chrome console:
main.js:5 Uncaught TypeError: typedoc.Application is not a constructor
at typedoc (... main.js:5:4156)

bug

Most helpful comment

Still not fixed?

All 6 comments

TypeDoc 0.5.1
Using TypeScript 2.0.6

+1, same problem here. Let me know more details are required.

TypeDoc 0.5.1
Using TypeScript 2.0.6

I too experience this.

It seems to be [email protected]'s probrem because it has been fixed by

{
"typedoc": "^0.5.1",
"typedoc-default-themes": "0.4.0"
}

Still not fixed?

Fixed in https://github.com/TypeStrong/typedoc-default-themes/pull/29 and "typedoc-default-themes": "0.4.2"

Closing as resolve according to the above comment.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Bibliofile picture Bibliofile  路  3Comments

0815fox picture 0815fox  路  3Comments

cfischer picture cfischer  路  4Comments

lsagetlethias picture lsagetlethias  路  3Comments

Rycochet picture Rycochet  路  4Comments