mini-css-extract-plugin
mini-css-extract-plugin copied to clipboard
fix: safer removeChild by checking parent node
This PR contains a:
- [+ ] bugfix
- [ ] new feature
- [ ] code refactor
- [ ] test update
- [ ] typo fix
- [ ] metadata update
Motivation / Use-Case
I got fed up with nextjs throwing this error:
runtime Error
Error: Cannot read properties of null (reading 'removeChild')
Call Stack
1
Hide 1 ignore-listed frame(s)
HTMLLinkElement.eval
node_modules\next\dist\compiled\mini-css-extract-plugin\hmr\hotModuleReplacement.js (1:1137)
So I patched the minified file to check if parentNode is null (which fixed the issue) and im uploading the patch here.
Breaking Changes
Additional Info
- :x: - login: @encloinc / name: Enclo . The commit (edc06980a694dca2d649ab59ce586964b067c20e) is not authorized under a signed CLA. Please click here to be authorized. For further assistance with EasyCLA, please submit a support request ticket.
Thanks for the contribution ❤️ ! Could you sign the CLA?
Fixed in the main