'Problem with exported members 'StatSyncFn'

There is this error on my build, i dont no from where and why, is coming like this...

Error: node_modules/webpack-dev-middleware/types/index.d.ts:204:27 - error TS2694: Namespace '"fs"' has no exported member 'StatSyncFn'.

 statSync?: import("fs").StatSyncFn;

I have try to re-install webpack, but and don't know what, i will doing for resume this error...

Having some solutions or ideas for ? Please,

Thank all us for you help...



Solution 1:[1]

Did you check this and this.

There are 2 possible reasons:

  1. Haven't updated node to latest ([email protected] => [email protected]) version
  2. Messed-up with destination locations.

**most probably updating npm and fs-extra would solve

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Muhammad Rehan