You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I add exclude files of node_modules in tsconfig.json, it still be checked as bellow,
ERROR in node_modules/pandora/src/js/utils/index.ts:135:74
TS7006: Parameter 'name' implicitly has an 'any' type.
133 | label = field(object);
134 | } else if (field.indexOf('${') >= 0) {
> 135 | label = field.replace(/\$\{([a-z0-9]+)\}/gi, function (text, name): string {
ERROR in node_modules/pandora/src/js/utils/index.ts:672:39
TS7006: Parameter 'key' implicitly has an 'any' type.
670 | /** set object's attributes to empty */
671 | changeAttrValToEmpty(obj: object): void {
> 672 | _.forEach(obj, function (val, key): void {
tsconfig.json
"exclude": [
"node_modules",
"**/*.spec.ts"
]
Expected behavior
Skip the check. When I run the pandora alone, it's OK. I don't know what happens, this error should not happen, or it should happen when I run the pandora alone. Here I want to skip it.
If you have error for tsc --noEmit as well, it means that it's not an issue with the plugin, but with typescript or its configuration.
For me it seems that you have contradicting configuration - on the one hand you include ./node_modules/pandora/src/typings/index.d.ts from node_modules but you also exclude node_modules. I think that in this case, file will take precedence over exclude. And when you type-check ./node_modules/pandora/src/typings/index.d.ts, you type-check all its dependencies. Do you need pandora in files?
Current behavior
When I add exclude files of node_modules in tsconfig.json, it still be checked as bellow,
tsconfig.json
Expected behavior
Skip the check. When I run the
pandora
alone, it's OK. I don't know what happens, this error should not happen, or it should happen when I run thepandora
alone. Here I want to skip it.Steps to reproduce the issue
tsconfig.json
webpack
Issue reproduction repository
Environment
The text was updated successfully, but these errors were encountered: