This repository was archived by the owner on Oct 23, 2023. It is now read-only.
This repository was archived by the owner on Oct 23, 2023. It is now read-only.
How to ignore node_modules package checks ? #52
Closed
Description
vue-tsc --noEmit && vite build --mode production
message
> build
> vue-tsc --noEmit && vite build --mode production
node_modules/element-plus/lib/el-cascader-panel/index.d.ts:5:15 - error TS2307: Cannot find module './src/types' or its corresponding type declarations.
5 export * from './src/types';
~~~~~~~~~~~~~
node_modules/element-plus/lib/el-cascader-panel/src/config.d.ts:2:93 - error TS2307: Cannot find module './types' or its corresponding type declarations.
2 import { CascaderValue, CascaderOption, CascaderConfig, CascaderProps, ExpandTrigger } from './types';
~~~~~~~~~
node_modules/element-plus/lib/el-cascader-panel/src/index.vue.d.ts:2:18 - error TS2307: Cannot find module './node' or its corresponding type declarations.
2 import Node from './node';
Metadata
Metadata
Assignees
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
Shinigami92 commentedon Jul 28, 2021
Try adding
"exclude": ["node_modules"]
in yourtsconfig.json
you227 commentedon Jul 28, 2021
Added configuration but it didn't work
vue-tsc version 0.2.2
tsconfig.json
johnsoncodehk commentedon Jul 28, 2021
Please config skipLibCheck in tsconfig or
--skipLibCheck
in cli. See #16 (comment).you227 commentedon Jul 29, 2021
@johnsoncodehk
Added the
vue-tsc --noEmit --skipLibCheck
command, the*.d.ts
file was ignored, but the*.ts
file was still scanned--skipLibCheck
Skip type checking of declaration files.output
johnsoncodehk commentedon Jul 29, 2021
@you227 Maybe
node_modules/element-plus/lib/utils/types.ts
has references in src so it can't be ignore.