Closed Superoryco closed 3 years ago
First I got the the error in ReplaceSource.js
. I applied the same fix as in the PR #121, it helped but then I also get similar error but in a different place
Seems like it's the same stack trace as in https://github.com/webpack/webpack/issues/13879
@modestfake I've not seen this problem yet in my project, try this maybe?
@Superoryco yes, it worked! Thanks for the fix! Hopefully it will be released soon.
@sokra Report: Exception still exists in 3.0.4, but from a different place: at checkOriginalContent (.../node_modules/webpack-sources/lib/ReplaceSource.js:169:40)
Fixed by d103b21, if still happened, delete node_modules folder and .lock file, then a fresh install.
Somehow the 'checkOriginalContent' function in ReplaceSource.js failed due to null value from sourceContents[sourceIndex], need a fix maybe.