Search code examples
angularwebpackangular13

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

  • Did you check this and this.

    There are 2 possible reasons:

    1. Haven't updated node to latest (npm@7.5.4 => fs-extra@8.0.1) version
    2. Messed-up with destination locations.

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