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

Unable to exclude node_modules #17

Closed
dharsanav opened this issue Apr 11, 2017 · 3 comments
Closed

Unable to exclude node_modules #17

dharsanav opened this issue Apr 11, 2017 · 3 comments

Comments

@dharsanav
Copy link

Hi,

When using typedoc-webpack-plugin, the document is being generated,but it outputs errors from node_modules. I tried to override exclude,but no use.Is there any way to tell the plugin to avoid looking into node_modules folder?

Structure of project

image

Typedoc-webpack-plugin options in webpack.local.js


        new TypedocWebpackPlugin({
            name: "Test",
            module: "commonjs",
            out: "../../docs/ts",
            includeDeclarations: true,
            ignoreCompilerErrors: true,
            excludeExternals: true,
            moduleResolution: "node",
            theme: "minimal",
            excludePrivate: true
        })
@timsawyer
Copy link
Contributor

timsawyer commented Apr 11, 2017

The plugin should be excluding node_modules by default, so I'm not sure what is happening in your project. Can you provide an example of what errors you are getting?

Also, have you tried setting the "externalPattern" property? To something like: '**/node_modules/**/*.*'

@dharsanav
Copy link
Author

dharsanav commented Apr 13, 2017

Yes I tried with external Pattern too. Still no result .

Document gets generated,however Iam seeing error from node_modules at console

Sample

Loaded plugin typedoc-plugin-external-module-name

Using TypeScript 2.2.2 from D:\Test\node_modules\typedoc\node_modules\typescript\lib
Error: D:/Test/node_modules/@angular/core/src/facade/lang.d.ts(11)
 'Map' only refers to a type, but is being used as a value here.
Error: D:/Test/node_modules/@angular/core/src/facade/lang.d.ts(12)
 'Set' only refers to a type, but is being used as a value here.
Error: D:/Test/node_modules/@covalent/core/common/forms/validators/number-required/number-required.validator.ts(18)
 Property 'isNaN' does not exist on type 'NumberConstructor'.
Error: D:/Test/node_modules/@covalent/core/data-table/data-table.component.ts(69)
 'Map' only refers to a type, but is being used as a value here.
Error: D:/Test/node_modules/@covalent/core/data-table/data-table.component.ts(118)
 Property 'find' does not exist on type 'ITdDataTableColumn[]'.
Error: D:/Test/node_modules/@covalent/core/data-table/data-table.component.ts(167)
 Property 'find' does not exist on type 'ITdDataTableColumn[]'.
Error: D:/Test/node_modules/@covalent/core/data-table/data-table.component.ts(225)
 Property 'set' does not exist on type 'Map<string, TemplateRef<any>>'.
Error: D:/Test/node_modules/@covalent/core/data-table/data-table.component.ts(243)
 Property 'get' does not exist on type 'Map<string, TemplateRef<any>>'.
Error: D:/Test/node_modules/@covalent/core/data-table/data-table.component.ts(274)
 Property 'find' does not exist on type 'any[]'.
Error: D:/Test/node_modules/@covalent/core/data-table/services/data-table.service.ts(19)
 Property 'find' does not exist on type 'string[]'.
Error: D:/Test/node_modules/@covalent/core/data-table/services/data-table.service.ts(44)
 Property 'isNaN' does not exist on type 'NumberConstructor'.
Error: D:/Test/node_modules/@covalent/core/data-table/services/data-table.service.ts(44)
 Property 'parseFloat' does not exist on type 'NumberConstructor'.
Error: D:/Test/node_modules/@covalent/core/data-table/services/data-table.service.ts(44)
 Property 'isNaN' does not exist on type 'NumberConstructor'.
Error: D:/Test/node_modules/@covalent/core/data-table/services/data-table.service.ts(44)
 Property 'parseFloat' does not exist on type 'NumberConstructor'.

@derushio
Copy link

I succeeded with this command.
typedoc --excludeExternals --externalPattern "**/node_modules/**" --ignoreCompilerErrors --name "$PROJ_NAME" --mode "file" --out "../document/typedoc/" "$SRC_DIR"

but, printed many error logs.

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

3 participants