TypeError: Cannot read property 'startsWith' of undefined
at Storage.purge (D:\anan\reactStartA\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:145:20)
at Storage.purge (D:\anan\reactStartA\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:150:18)
at CachedInputFileSystem.purge (D:\anan\reactStartA\node_modules\enhanced-resolve\lib\CachedInputFileSystem.js:259:23)
at EventEmitter.watcher.once (D:\anan\reactStartA\node_modules\webpack\lib\node\NodeWatchFileSystem.js:42:26)
at EventEmitter.g (events.js:291:16)
at emitTwo (events.js:106:13)
at EventEmitter.emit (events.js:191:7)
at EventEmitter._onTimeout (D:\anan\reactStartA\node_modules\watchpack\lib\watchpack.js:142:7)
at ontimeout (timers.js:380:14)
at tryOnTimeout (timers.js:244:5)
at Timer.listOnTimeout (timers.js:214:5)
I know the reason ,beacasue this project package 'enhanced-resolve' is old ,delete enhanced-resolve package and install it again;
npm install enhanced-resolve@lastest
when I save the code ,compile error. error :