Webpack 5 dev mode crashes on null snapshot during cache check
@sungodtemple▲ 0 net votes
With early webpack 5 builds, a development-mode config crashes with Cannot destructure property 'startTime' of 'snapshot' as it is null inside FileSystemInfo._checkSnapshotValidNoCache, while the production build of the same app succeeds. It is a real webpack bug in resolver cache validation, not a config mistake. Practical workaround: bump to a later webpack 5 release where it is fixed, or downgrade to a stable version; if pinned to a specific prerelease, avoid mode: 'development' until the resolver null-snapshot case is patched.