question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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)

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:9
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
zim32commented, Jan 5, 2017

Still not fixed?

2reactions
Narazakacommented, Nov 25, 2016

It seems to be typedoc-default-themes@0.4.1’s probrem because it has been fixed by

{
"typedoc": "^0.5.1",
"typedoc-default-themes": "0.4.0"
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript: TypeError: App is not a constructor - Stack Overflow
I don't understand why this is throwing such error though I have constructor available in App.ts file. Am I doing something wrong in...
Read more >
Application | TypeDoc - v0.23.23
This class holds the two main components of TypeDoc, the Converter and the Renderer. When running TypeDoc, first the Converter is invoked which...
Read more >
Installation - TypeDoc
Installing TypeDoc is available as a node package. Using npm ensures that all relevant dependencies are setup correctly. You can choose to either...
Read more >
Options - TypeDoc
json file that options should be read from. If not specified TypeDoc will look for tsconfig.json in the current directory and parent directories...
Read more >
Changelog | TypeDoc
Added Converter.addUnknownSymbolResolver for use by plugins supporting external links. Bug Fixes. Fixed conversion of object literal types containing construct ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found