Closed fregante closed 3 years ago
I found an issue with this line:
https://github.com/crimx/webpack-target-webextension/blob/d0dc5c448592875b69a42e329736072b11744596/lib/webpack5/AutoPublicPathRuntimeModule.js#L27
Which causes an unhelpful error:
ERROR in webpack/runtime/publicPath outputPath.replace is not a function
because Webpack's getUndoPath function accepts a string, not a boolean, since v5.26:
getUndoPath
https://github.com/webpack/webpack/blob/5dd661cc39c1c59c70859afa55757cdb483418cc/lib/util/identifier.js#L309-L313
https://github.com/webpack/webpack/commit/7dc945f147a189386de82d7b1a362fb737aeb414
@Jack-Works Any idea how to fix this?
I found an issue with this line:
https://github.com/crimx/webpack-target-webextension/blob/d0dc5c448592875b69a42e329736072b11744596/lib/webpack5/AutoPublicPathRuntimeModule.js#L27
Which causes an unhelpful error:
because Webpack's
getUndoPath
function accepts a string, not a boolean, since v5.26:https://github.com/webpack/webpack/blob/5dd661cc39c1c59c70859afa55757cdb483418cc/lib/util/identifier.js#L309-L313
https://github.com/webpack/webpack/commit/7dc945f147a189386de82d7b1a362fb737aeb414