[injector-helpers] injector-helpers plugin fails to load domhandler@^3
Root Cause
When node_modules/thin-hook/node_modules/domhandler is @^2 and node_modules/domhandler is @^3, node_modules/@thin-hook/injector-helpers/node_modules/domhandler is inexistent
node_modules/@thin-hook/injector-helpers/configurator.js fails to load domhander@^3 since node_modules/thin-hook/node_modules/domhandler overrides the resolution
[injector-helpers]
injector-helpers
plugin fails to loaddomhandler@^3
Root Cause
node_modules/thin-hook/node_modules/domhandler
is@^2
andnode_modules/domhandler
is@^3
,node_modules/@thin-hook/injector-helpers/node_modules/domhandler
is inexistentnode_modules/@thin-hook/injector-helpers/configurator.js
fails to loaddomhander@^3
sincenode_modules/thin-hook/node_modules/domhandler
overrides the resolutionWorkaround
node_modules/domhandler
---@^2
node_modules/@thin-hook/injector-helpers/node_modules/domhandler
---@^3
Ad-hoc Fix
Avoid loading
domhandler@2
undernode_modules/thin-hook/node_modules
})); const cssauron = require('cssauron');
const parser = require('espree'); // can be esprima or acorn
Fundamental Fix
htmlparser2@3.9.2
to@4
, which depends ondomhandler@^3
lib/preprocess.js