Parteek Dhaliwal
Parteek Dhaliwal

Reputation: 1

@types/webpack dependency suddenly started giving error

Recently I believe some changes were made to webpack dependency due to which I'm unable to deploy the service. This is the code snippet in types.d.ts file which was changed. Old Version

type ArrayBufferView =
    | Uint8Array
    | Uint8ClampedArray
    | Uint16Array
    | Uint32Array
    | Int8Array
    | Int16Array
    | Int32Array
    | BigUint64Array
    | BigInt64Array
    | Float32Array
    | Float64Array
    | DataView;

New Version

type ArrayBufferView =
    | Uint8Array<ArrayBufferLike>
    | Uint8ClampedArray<ArrayBufferLike>
    | Uint16Array<ArrayBufferLike>
    | Uint32Array<ArrayBufferLike>
    | Int8Array<ArrayBufferLike>
    | Int16Array<ArrayBufferLike>
    | Int32Array<ArrayBufferLike>
    | BigUint64Array<ArrayBufferLike>
    | BigInt64Array<ArrayBufferLike>
    | Float32Array<ArrayBufferLike>
    | Float64Array<ArrayBufferLike>
    | DataView<ArrayBufferLike>;

I just want to know what specifically is causing this error and why it started appearing suddenly.

Downgrading @types/webpack from 5.28.0 to 4.41.26 solved the error.

But I do not want to downgrade. Please suggest any other solution.

Upvotes: -2

Views: 24

Answers (0)

Related Questions