Typedoc: Can't find modules defined in typings directory

Created on 1 Jun 2016  路  4Comments  路  Source: TypeStrong/typedoc

Using lodash and having the typings installed I can compile.
Using typedoc with the same typescript version I get:
Cannot find name '_'.

All 4 comments

+1 I also get this.

I was able to fix this by adding ./typings/index.d.ts to source-files. Maybe this can help you also ...

I was originally running:

$ typedoc --out docs  --module "commonjs" src

Using TypeScript 1.8.10 from /Users/glavin/Documents/Project Dev/unibeautify/node_modules/typescript/lib
Error: /Users/glavin/Documents/Project Dev/unibeautify/src/beautifier.d.ts(0)
 Cannot find module 'bluebird'.
Error: /Users/glavin/Documents/Project Dev/unibeautify/src/beautifier.ts(2)
 Cannot find module 'bluebird'.                                  

Then I added --includeDeclarations typings/ and it works:

$ typedoc --out docs --includeDeclarations typings/ --module commonjs src


Using TypeScript 1.8.10 from /Users/glavin/Documents/Project Dev/unibeautify/node_modules/typescript/lib
Rendering [========================================] 100%

Documentation generated at /Users/glavin/Documents/Project Dev/unibeautify/docs

I've ended with:

typedoc --out docs --exclude \"**/*.spec.ts\" --excludeExternals --excludePrivate --readme README.md  node_modules/@types src
Was this page helpful?
0 / 5 - 0 ratings

Related issues

topherfangio picture topherfangio  路  3Comments

Rycochet picture Rycochet  路  4Comments

unsafecode picture unsafecode  路  4Comments

atomsoftwarestudios picture atomsoftwarestudios  路  4Comments

KevinEady picture KevinEady  路  3Comments