webpack-contrib/cache-loader

bug report of 1.2.4

neove opened this issue ยท 12 comments

neove commented

3d7b6a589c2da27f9dd2b87a3aa02c98

neove commented

when i update cache-loader from 1.2.2 to 1.2.4๏ผŒ i have this error

+1, same here

Doesn't work as part of the angular build as well:

ERROR in ./node_modules/@angular/core/fesm5/core.js
Module build failed: TypeError: Cannot read property '_statSync' of undefined

 at stat (/home/m/xbet/mobile/node_modules/@ngtools/webpack/src/virtual_file_system_decorator.js:26:29)
    at toDepDetails (/home/m/xbet/mobile/node_modules/cache-loader/dist/index.js:66:5)
    at arrayIterator (/home/m/xbet/mobile/node_modules/neo-async/async.js:3780:9)
    at timesSync (/home/m/xbet/mobile/node_modules/neo-async/async.js:2292:7)
    at Object.mapLimit (/home/m/xbet/mobile/node_modules/neo-async/async.js:3775:5)
    at Array.<anonymous> (/home/m/xbet/mobile/node_modules/cache-loader/dist/index.js:89:18)
    at arrayEachFunc (/home/m/xbet/mobile/node_modules/neo-async/async.js:2512:19)
    at Object.parallel (/home/m/xbet/mobile/node_modules/neo-async/async.js:6867:9)
    at Object.loader (/home/m/xbet/mobile/node_modules/cache-loader/dist/index.js:88:9)

Explicitly stating version in package.json to 1.2.2 fixes the problem.

@mihiic yep, I did the same

zzzJH commented

same here

same here !!!

Please try and confirm

node_modules/cache-loader/index.js

// L69
- }
+ }.bind(this);

@michael-ciniawsky see b84d13e#r31116413 ๏ผŒ I just commit a PR to fix this bug in #47

Hello, having the same here, breaking my angular project build :

ERROR in ./node_modules/core-js/es6/symbol.js
Module build failed: TypeError: Cannot read property '_statSync' of undefined
at stat (/home/circleci/wfo/wfo-web-client/node_modules/@ngtools/webpack/src/virtual_file_system_decorator.js:26:29)
at toDepDetails (/home/circleci/wfo/wfo-web-client/node_modules/cache-loader/dist/index.js:66:5)
at arrayIterator (/home/circleci/wfo/wfo-web-client/node_modules/neo-async/async.js:3780:9)
at timesSync (/home/circleci/wfo/wfo-web-client/node_modules/neo-async/async.js:2292:7)
at Object.mapLimit (/home/circleci/wfo/wfo-web-client/node_modules/neo-async/async.js:3775:5)
at Array. (/home/circleci/wfo/wfo-web-client/node_modules/cache-loader/dist/index.js:89:18)
at arrayEachFunc (/home/circleci/wfo/wfo-web-client/node_modules/neo-async/async.js:2512:19)
at Object.parallel (/home/circleci/wfo/wfo-web-client/node_modules/neo-async/async.js:6867:9)
at Object.loader (/home/circleci/wfo/wfo-web-client/node_modules/cache-loader/dist/index.js:88:9)

@patriceo :
If you need to fix it fast, add "cache-loader": "1.2.2", to your package.json
If you have time, let the guys here release a new version (1.2.4 or 1.2.5 i guess). This will get fetched automatically, because in webpack there is a dependency to "cache-loader": "^1.2.0"

@patriceo :
If you need to fix it fast, add "cache-loader": "1.2.2", to your package.json
If you have time, let the guys here release a new version (1.2.4 or 1.2.5 i guess). This will get fetched automatically, because in webpack there is a dependency to "cache-loader": "^1.2.0"

Thanks that's exactly what I did, looking forward to seeing a new version.

Fixed by #47

Released in v1.2.5