-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Closed
Description
- I have searched the issues of this repository and believe that this is not a duplicate.
Version
3.2.14
Environment
mac os ventura 13.0.1, node v14.21.2, npm 6.14.17, ts 4.5.4, vue 3.2.20
Steps to reproduce
npm run build
What is expected?
the successful build of the project
What is actually happening?
project build fails
ERROR Failed to compile with 2 errors 17:41:03
error in node_modules/ant-design-vue/lib/vc-image/src/Preview.d.ts:2:15
TS1005: ',' expected.
1 | import type { VNode, PropType } from 'vue';
> 2 | import { type IDialogChildProps } from '../../vc-dialog/IDialogPropTypes';
| ^^^^^^^^^^^^^^^^^
3 | export interface PreviewProps extends Omit<IDialogChildProps, 'onClose' | 'mask'> {
4 | onClose?: (e: Element) => void;
5 | src?: string;
error in node_modules/ant-design-vue/lib/vc-image/src/PreviewGroup.d.ts:2:15
TS1005: ',' expected.
1 | import type { PropType, Ref, ComputedRef } from 'vue';
> 2 | import { type ImagePreviewType } from './Image';
| ^^^^^^^^^^^^^^^^
3 | import type { PreviewProps } from './Preview';
4 | export interface PreviewGroupPreview extends Omit<ImagePreviewType, 'icons' | 'mask' | 'maskClassName'> {
5 | /**
- If I put the word "type" outside the {} brackets in the node_modules files of the library, it will be built locally successfully