Error in compilation

I am getting below error while build

ERROR in node_modules/@apollo/client/utilities/observables/Observable.d.ts:3:1 - error TS1128: Declaration or statement expected.

3 export type { Observer, ObservableSubscription, Subscriber, };

node_modules/@apollo/client/utilities/observables/Observable.d.ts:3:13 - error TS1005: ';' expected.

3 export type { Observer, ObservableSubscription, Subscriber, };
            ~
node_modules/@apollo/client/utilities/observables/Observable.d.ts:3:61 - error TS1109: Expression expected.

3 export type { Observer, ObservableSubscription, Subscriber, };
                                                            ~
node_modules/@apollo/client/core/types.d.ts:38:1 - error TS1128: Declaration or statement expected.

38 export type { QueryOptions as PureQueryOptions };

node_modules/@apollo/client/core/types.d.ts:38:13 - error TS1005: ‘;’ expected.

38 export type { QueryOptions as PureQueryOptions };